[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#361718: FTBFS with GCC 4.2: cast from pointer to integer of different size



Martin Michlmayr <tbm@cyrius.com> writes:

> Package: dancer-ircd
> Version: 1.0.36-5
>
> Your package fails to build with GCC 4.2.  Version 4.2 has not been
> released yet but I'm building with a snapshot in order to find errors
> and give people an advance warning.  The bug below is in your package
> and not because I'm using a snapshot of the compiler so please take a
> look at it.  You can reproduce this with the gcc-snapshot package.
[...]

Unfortunately, I can't seem to find a 64-bit machine with gcc-snapshot.
Does the attached patch work for you?

Thanks,

Matej
--- dancer-ircd-1.0.36/src/m_stats.c.orig
+++ dancer-ircd-1.0.36/src/m_stats.c
@@ -230,7 +230,7 @@
             {
               sendto_one(sptr, Lformat, me.name,
                      RPL_STATSLINKINFO, parv[0],
-                     (IsUpper(stat)) ?
+                     (IsUpper(statcmd)) ?
                      get_client_name(acptr, TRUE) :
                      get_client_name(acptr, FALSE),
                      (int)DBufLength(&acptr->sendQ),

Reply to: