1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00: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:
Marco Costalba 2009-12-21 07:15:53 +01:00
parent 734fb9a13b
commit 12aeac5e14

View file

@ -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); }