[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: Joseph Galbraith <galb_at_vandyke.com>
Date: 2005-08-19 16:28:24 CEST

Stefan Küng wrote:
> Simon Large wrote:
>> Stefan Küng wrote:
>>
>>> Stefan Fuhrmann wrote:
>>>
>>>> * with VC++, sizeof(long)==sizeof(int)==4, even on a 64 bit platform
>>>> (some pointer casts therefore caused access violations in debug mode)
>>>
>>>
>>> But this would be against the C-standard? Isn't there maybe a switch
>>> in the compiler settings to turn this 'compatibility mode' off?
>>
>>
>> Which part of this is against the C-standard?
>
> sizeof(long) != sizeof(int) AFAIK.

I'm pretty sure that the standard is (deliberately) sufficiently
vague that this is legal.

I'm pretty sure if it is legal for sizeof(long) == sizeof(int)
on a 32 bit processor, it is legal on a 64-bit processor.

> int = type with size of the processor register bus (32-bit processors =>
> int = 32 bit)
> long = twice the size of int

This isn't true for win32 either (as opposed to win64.)

For win32, long == 32bit, int == 32bit.

Thanks,

Joseph

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Aug 19 16:27:22 2005

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

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