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

Re: A question on version numbers

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2004-09-29 17:27:40 CEST

Michael Sweet <mike@easysw.com> writes:

> kfogel@collab.net wrote:
>> "Alexander L. Belikoff" <alexander@belikoff.net> writes:
>>>>You're right -- I just misread my ANSI C doc in a dumb way. A long
>>>>int is guaranteed to be at least 32 bits. Sorry for the confusion.
>>>Really?!?! I may be quite wrong, but AFAIR, the *only* thing ANSI C
>>>guarantees is that long int is *no less* in size than int (which, in
>>>turn is no less than short etc etc).
>> K&R (ANSI C) Second Edition, page 18, middle:
>> "long integers are at least 32 bits."
> IIRC, that K&R 2e book was released before the final ANSI C
> standard was ratified and isn't considered to be authoritative.
> (that isn't to say you aren't right, but just so you know...)

  International Standard ISO/IEC 9899 Sizes of integer types <limits.h>

       LONG_MAX 2147483647 // 2^31-1

A conforming implementation cannot use a smaller value.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 29 17:28:03 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.