aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/uci.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/uci.cpp b/src/uci.cpp
index 5303c4b..29c544f 100644
--- a/src/uci.cpp
+++ b/src/uci.cpp
@@ -11,6 +11,7 @@
#include <print>
#include <sstream>
#include <string>
+#include <sys/types.h>
#include <type_traits>
#include <unordered_map>
@@ -107,10 +108,11 @@ static void PrintBitboard(uint64_t bb, const std::string &name) {
for (int file = 0; file < 8; file++) {
int sq = (rank * 8) + file;
- std::cout << (((bb >> sq) & 1ULL) ? "1 " : ". ");
+
+ std::cout << (((bb >> sq) & 1) > 0 ? "1 " : ". ");
}
- std::print(" | {0}\n", rank + 1);
+ std::print("| {0}\n", rank + 1);
}
std::cout << "0x" << std::hex << bb << std::dec << "\n\n";
}