----- Original Message -----
> for sure… mixing pointers and ints is Do Not Do In C 101.
> Tracking the full issue…
Here's how we deal with that on trunk:
@@ -1863,7 +1861,7 @@
c->freeall();
p = (char *) DOUBLE_ALIGN(p);
#ifdef PURIFY
- if ((unsigned int) endp < (unsigned int) p)
+ if ((uintptr_t) endp < (uintptr_t) p)
memset(endp, 0, (p - endp));
#endif
}
n.b.: I recently enabled --enable-purify for all buildbots in order
> > The first is 64 bits on most systems an the latter is 32 bits on
> > all (supported) systems.
> >
> > --
> > Theo Schlossnagle (mobile)
> > http://omniti.com/is/theo-schlossnagle
> >
> > On Sep 24, 2011, at 9:10 AM, Jim Jagielski <[email protected]> wrote:
> >
> >> Weird…
> >>
> >> ClusterHandler.cc:1866: error: cast from 'char*' to 'unsigned
> >> int' loses precision
> >>
> >> trying to recreate here… will find and fix :)
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: [email protected]
URL: http://brainsware.org/
GPG: 571B 8B8A FC97 266D BDA3 EF6F 43AD 80A4 5779 3257