[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2005-08-19 14:43:02 CEST

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.

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

But I could be wrong - I'm an electrical engineer, so in our area we
have to deal with all kinds of processors (from 4(!)-bit to 32 bit
processors), and with those it's as I described above.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Aug 19 14:43:34 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.