cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: examples compiler warnings

From: John P. Hartmann <jphartmann_at_gmail.com>
Date: Thu, 22 Sep 2011 16:15:30 +0100

Use %zd to print size_t portably between 32 and 64 bit platforms.

On 22 September 2011 16:04, Guenter <lists_at_gknw.net> wrote:
> Am 22.09.2011 16:58, schrieb Steve Holme:
>>>
>>> the other *_err_long warnings with MinGW64 might be because surprisingly
>>> sizeog(long) is 4 instead of 8 ...
>>
>> I'm not sure if I've missed something but isn't the sizeof a long on
>> Windows 4 bytes even under 64-bit?
>
> yes, it is - and that exactly what I said.
>
>> I know this is different to some Linux environments but (and I don't use
>> MinGW myself as I'm a Visual Studio engineer) doesn't MinGW provide runtime
>> compatibility to the Microsoft Runtime and as such I would have expected
>> longs to be 4 bytes as you are seeing.
>
> I think so ...
>
> Gün.
>
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette:  http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-22