[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: apr_off_t is of an ambiguous size.

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-01-18 08:44:17 CET

Kean Johnston wrote:

>>> min = 0x8000000000000000 = -9223372036854775808 = -2^63
>>> max = 0x7FFFFFFFFFFFFFFF = 9223372036854775807 = 2^63-1
>>
> Bad code.
>
> Those constants cannot be expressed on a platform that does not
> support 64-bit integers. Even on platforms that do if you really get a
> long long the compiler is being generous. They should be suffixed with
> LL, or ULL for unsigned. Type long long is, I believe, an ANSI
> extension, its not base ANSI (but I may be wrong on that point).

There is no such thing as ANSI C. :-)
But in ISO C, "long long" is a standard type. Has been for more than
three years. :-)

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 18 08:46:53 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.