X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftypes.h;h=72c5699f1189520b4a178ec07c63246fb49ecafe;hb=0cfb653eeca1bc44b9d331498a9ccb3e9b97a9c1;hp=2fb8fe7ba9e1a250fd5a2a7e92a929d8346824f4;hpb=e408fd7b10503a9114962cb5972abd9957bc67c2;p=stockfish diff --git a/src/types.h b/src/types.h index 2fb8fe7b..72c5699f 100644 --- a/src/types.h +++ b/src/types.h @@ -257,10 +257,10 @@ enum Rank : int { }; -/// Score enum stores a middlegame and an endgame value in a single integer -/// (enum). The least significant 16 bits are used to store the endgame value -/// and the upper 16 bits are used to store the middlegame value. Take some -/// care to avoid left-shifting a signed int to avoid undefined behavior. +/// Score enum stores a middlegame and an endgame value in a single integer (enum). +/// The least significant 16 bits are used to store the middlegame value and the +/// upper 16 bits are used to store the endgame value. We have to take care to +/// avoid left-shifting a signed int to avoid undefined behavior. enum Score : int { SCORE_ZERO }; constexpr Score make_score(int mg, int eg) {