X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fvalue.h;h=fec6516a4c8c4014427afeeb3cf22d6b9941d865;hp=d54f81961174472cc7d8fde5b624ef18d3b9abde;hb=0973cc2ef63060294f790803e0525b66ee91dfee;hpb=ba07b95ee09896a5835d44f2086b92dde2091b3d diff --git a/src/value.h b/src/value.h index d54f8196..fec6516a 100644 --- a/src/value.h +++ b/src/value.h @@ -56,7 +56,7 @@ enum Value { /// integer (enum), first LSB 16 bits are used to store endgame /// value, while upper bits are used for midgame value. -enum Score {}; +enum Score { ENSURE_32_BIT_SIZE = 1 << 31 }; inline Value eg_value(Score s) { return Value(int16_t(s & 0xffff)); } inline Value mg_value(Score s) { return Value((int(s) + 32768) >> 16); }