X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmaterial.cpp;h=93699f5f60b97ad2f05875ba7270151581acd113;hb=209e94203f8c4d0a48405192d1e71c80f28f3159;hp=7e212461098d68bc4478f7816562860c9b3212ac;hpb=b7ecdaada7e2690dd286c41d3a73463f06fb088f;p=stockfish diff --git a/src/material.cpp b/src/material.cpp index 7e212461..93699f5f 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -84,7 +84,7 @@ namespace { template int imbalance(const int pieceCount[][PIECE_TYPE_NB]) { - constexpr Color Them = (Us == WHITE ? BLACK : WHITE); + constexpr Color Them = ~Us; int bonus = 0;