mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Score definition gives a compile error under gcc
For enum definitions a parenthesis is required. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -55,7 +55,7 @@ enum Value {
|
|||||||
/// Score struct keeps a midgame and an endgame value in a single
|
/// Score struct keeps a midgame and an endgame value in a single
|
||||||
/// ScoreValue 64 bit union.
|
/// ScoreValue 64 bit union.
|
||||||
|
|
||||||
enum Score;
|
enum Score {};
|
||||||
|
|
||||||
inline Value eg_value(Score s) { return Value(int16_t(s & 0xffff)); }
|
inline Value eg_value(Score s) { return Value(int16_t(s & 0xffff)); }
|
||||||
inline Value mg_value(Score s) { return Value((int(s) + 32768) >> 16); }
|
inline Value mg_value(Score s) { return Value((int(s) + 32768) >> 16); }
|
||||||
|
|||||||
Reference in New Issue
Block a user