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

Re: [tortoisesvn] r21436 committed - Remove used asm and comment used algorithm

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 21 May 2011 22:07:32 +0200

On 21.05.2011 21:35, Oto BREZINA wrote:
> On 2011-05-21 21:33, tortoisesvn_at_googlecode.com wrote:
>> + nTestBit |= nTestBit>>32;
> I just found that this one produces warning. What is int size in 64bit
> build ?
> What is simplest way to determine 64bit build?

You get that warning only for the x64 build? You should also get it for
the win32 build. Because you can't shift 32 bits for a variable that's
also 32-bit (doesn't make any sense), and especially not for a *signed*
32-bit variable.

sizeof(int) is 4 for both 32 and 64 bit builds. At least with Windows
compilers. If you want to use 64-bit types, you have to use __int64 instead.

Note: while sizeof(int) is 4, sizeof(size_t) is 4 on win32 but 8 on x64.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-05-21 22:07:43 CEST

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.