[Qemu-devel] Re: [PATCH] Fix conversions from pointer to int and vice versa
On 02/24/2011 08:21 AM, Markus Armbruster wrote: Why can't you cast straight to void *? "warning: cast from pointer to integer of different size", and similarly in the other direction.
[Qemu-devel] Re: [PATCH] Fix conversions from pointer to int and vice versa
Stefan Weil wrote: > Here the int values fds[0], sigfd, s, sock and fd are converted > to void pointers which are later converted back to an int value. > > These conversions should always use intptr_t instead of unsigned long. > > They are needed for environments where sizeof(long) != sizeof(void *). > > Signed-off-by: Stefan Weil migration-{tcp,unix}.c conflict with my series. If Anthony don't pick them before my next respin, I will include that two files. Thanks, Juan.