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: Peter Stuge <peter_at_stuge.se>
Date: Fri, 25 Dec 2009 07:48:24 +0100

Daiki Ueno wrote:
> >> + 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?

> Is there any recommendation on size_t/ssize_t/unsigned long usage?

I always try to use what the system APIs use. libssh2 basically
doesn't right now, I don't know why, and I think it would be nice to
improve that if possible. Windows might cause some trouble by using
other types..

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