]> git.sesse.net Git - stockfish/commitdiff
Fix a crash of syzygy on Android
authorMarco Costalba <mcostalba@gmail.com>
Sun, 11 Jan 2015 07:31:21 +0000 (08:31 +0100)
committerJoona Kiiski <joona.kiiski@gmail.com>
Sun, 11 Jan 2015 20:10:31 +0000 (20:10 +0000)
On Android-ARM current TB code crashes at
random times even in single thread mode.

Reported, debugged, fixed and verified
by Peter Osterlund.

No functional change.

Resolves #201

src/syzygy/tbcore.cpp

index 3485f2b0c1f806eab48eb35e07ebd1408c4e1407..0d88dbcbe7f4e5b418d96bbd81c9cab1b0fee9e2 100644 (file)
@@ -370,7 +370,7 @@ void Tablebases::init(const std::string& path)
   printf("info string Found %d tablebases.\n", TBnum_piece + TBnum_pawn);
 }
 
   printf("info string Found %d tablebases.\n", TBnum_piece + TBnum_pawn);
 }
 
-static const char offdiag[] = {
+static const signed char offdiag[] = {
   0,-1,-1,-1,-1,-1,-1,-1,
   1, 0,-1,-1,-1,-1,-1,-1,
   1, 1, 0,-1,-1,-1,-1,-1,
   0,-1,-1,-1,-1,-1,-1,-1,
   1, 0,-1,-1,-1,-1,-1,-1,
   1, 1, 0,-1,-1,-1,-1,-1,