Hi,
On Sun, Nov 07, 2004 at 02:00:42PM -0500, MenTaLguY wrote: [snip]
Casting a void * to an int is probably a very bad thing to do. A void * is 64 bit on those arches while an int is 32 bit.
In this particular case the loss of precision is OK in practice, since the void * is being used to hold very small integers.
However, ptrdiff_t is still more appropriate and will always have sufficient precision to match void *; I will change the cast to that instead.
Thanks,
-mental
Thanks for fixing this. The problem here is not the lost precision, but that the build fails in all 64Bit architectures in debian unstable. Shall I open a bug on this in the tracker? I originally wanted to do that, but yesterday I was in a hurry so I just pressed the forward key in mutt.
With best regards,
Wolfi