aole / evolchess

Automatically exported from code.google.com/p/evolchess
0 stars 0 forks source link

Portability concern #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile with Non-GCC compiler

What is the expected output? What do you see instead?
Expected output is errors because 64 bit integer constants are not 
formatted correctly.  I would prefer to see a clean compile.

What version of the product are you using? On what operating system?
Source reports 0.5. OS is 64 bit Windows Server 2008.  Compiler is 
Microsoft Visual C++ 2008 Development Edition.

Please provide any additional information below.

Instead of the modifier LLU, it should be ULL, as for example:

const bitboard start_pieces[2][6] = {
    {0x0000000000000010ULL, 0x0000000000000008ULL, 0x81, 0x24, 0x42, 
0xff00},
    {0x1000000000000000ULL, 0x0800000000000000ULL, 
0x8100000000000000ULL, 0x2400000000000000ULL, 0x4200000000000000ULL, 
0x00ff000000000000ULL}};

This will compile with both GCC, Intel C++, Microsoft VC++, etc.

Original issue reported on code.google.com by dcor...@connx.com on 28 May 2009 at 7:32

GoogleCodeExporter commented 8 years ago
Thanks for pointing that out!

Original comment by bhupendr...@gmail.com on 29 May 2009 at 2:55

GoogleCodeExporter commented 8 years ago
Revision r17.

Original comment by bhupendr...@gmail.com on 29 May 2009 at 3:00