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

Re: [TSVN] Running 64 bit prototype of TSVN 1.2.1 built with VS2005

From: Norbert Unterberg <nunterberg_at_gmail.com>
Date: 2005-08-21 20:38:38 CEST

2005/8/19, Simon Large <simon@skirridsystems.co.uk>:

> These are (I think) the ANSI C requirements:
>
> sizeof(short) <= sizeof(int) <= sizeof(long)
>
> sizeof(int) >= 2
> sizeof(long) >= 4

If I remember correctly, it is even more suble:

sizeof(short) <= sizeof(int) <= sizeof(long)
sizeof(short) < sizeof(long)

That means int is something between short and long, but long must be
larger than short.

ANSI does not talk about absolute bit numbers or sizes, but it defines
minimum ranges for SHRT_MIN/MAX (+/- 32767) and LONG_MIN/MAX (+/-
2147483647). Which is basically equivalent to
  sizeof(int) >= 2
  sizeof(long) >= 4
on a 8 bit per byte 2's complement machine.

Norbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sun Aug 21 20:39:11 2005

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