Fix compiler error for MSVC
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 30 Dec 2020 09:50:13 +0000 (10:50 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 30 Dec 2020 09:50:13 +0000 (10:50 +0100)
src/evaluate.cpp

index b5bb3de..ed14807 100644 (file)
@@ -772,7 +772,7 @@ namespace {
                  +  98 * popcount(pos.blockers_for_king(Us))
                  +  69 * kingAttacksCount[Them] * (2 + 8 * pos.check_counting() + pos.captures_to_hand()) / 2
                  +   3 * kingFlankAttack * kingFlankAttack / 8
-                 +       mg_value(mobility[Them] - mobility[Us]) * !pos.captures_to_hand()
+                 +       mg_value(mobility[Them] - mobility[Us]) * int(!pos.captures_to_hand())
                  - 873 * !(pos.major_pieces(Them) || pos.captures_to_hand())
                        * 2 / (2 + 2 * pos.check_counting() + 2 * pos.two_boards() + 2 * pos.makpong()
                                 + (pos.king_type() != KING) * (pos.diagonal_lines() ? 1 : 2))