Subject: Re: libssh2 master 63457df... Fix compiler warnings for size_t pointers on 32-bit Windows.

Re: libssh2 master 63457df... Fix compiler warnings for size_t pointers on 32-bit Windows.

From: Daiki Ueno <ueno_at_unixuser.org>
Date: Fri, 25 Dec 2009 16:04:18 +0900

Peter Stuge <peter_at_stuge.se> writes:

>> >> + unsigned long _sig_len;
>> >
>> > Could this have been solved with a cast?
>>
>> Indeed, I was just worried about the case: sizeof(size_t) == 8 and
>> sizeof(unsigned long) == 4 (i.e. on Windows 64),
>
> Win64 means 64 bit system, so long should also be 64 bit, right?

Not sure since I don't have that OS. But there are some web pages tell
that long is 32 bit on the system, while long long and pointers are 64
bit:

http://wiki.wireshark.org/Development/Win64

Regards,

-- 
Daiki Ueno
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-12-25