From 48655d49fa8115e6c2d4c8e486533acf8fe4d5fe Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sat, 3 Oct 2020 09:42:47 +0200 Subject: [PATCH] Add DroidFish modifications to Stockfish --- DroidFishApp/src/main/cpp/stockfish/misc.cpp | 2 +- DroidFishApp/src/main/cpp/stockfish/syzygy/tbprobe.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DroidFishApp/src/main/cpp/stockfish/misc.cpp b/DroidFishApp/src/main/cpp/stockfish/misc.cpp index a16a6e9..a389616 100644 --- a/DroidFishApp/src/main/cpp/stockfish/misc.cpp +++ b/DroidFishApp/src/main/cpp/stockfish/misc.cpp @@ -65,7 +65,7 @@ namespace { /// Version number. If Version is left empty, then compile date in the format /// DD-MM-YY and show in engine_info. -const string Version = ""; +const string Version = "280920"; /// Our fancy logging facility. The trick here is to replace cin.rdbuf() and /// cout.rdbuf() with two Tie objects that tie cin and cout to a file stream. We diff --git a/DroidFishApp/src/main/cpp/stockfish/syzygy/tbprobe.cpp b/DroidFishApp/src/main/cpp/stockfish/syzygy/tbprobe.cpp index 4d682f1..ed38e32 100644 --- a/DroidFishApp/src/main/cpp/stockfish/syzygy/tbprobe.cpp +++ b/DroidFishApp/src/main/cpp/stockfish/syzygy/tbprobe.cpp @@ -472,6 +472,8 @@ TBTables TBTables; // If the corresponding file exists two new objects TBTable and TBTable // are created and added to the lists and hash table. Called at init time. void TBTables::add(const std::vector& pieces) { + if (sizeof(char*) < 8 && pieces.size() >= 6) + return; // Not enough address space to support 6-men TB on 32-bit OS std::string code;