Re: [Qemu-devel] [PATCH] slirp: Fix compiler warning for w64

2012-03-13 Thread Jan Kiszka
On 2012-03-10 21:20, Stefan Weil wrote: > Casting a pointer to an integer value must use uintptr_t or intptr_t > (not long) for portable code. MinGW-w64 requires this because > sizeof(long) != sizeof(void *) for w64 hosts, so casting to long > raises a compiler warning. > > I use uintptr_t instead

[Qemu-devel] [PATCH] slirp: Fix compiler warning for w64

2012-03-10 Thread Stefan Weil
Casting a pointer to an integer value must use uintptr_t or intptr_t (not long) for portable code. MinGW-w64 requires this because sizeof(long) != sizeof(void *) for w64 hosts, so casting to long raises a compiler warning. I use uintptr_t instead of intptr_t because changing the sign does not matt