mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33: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:
parent
734fb9a13b
commit
12aeac5e14
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ enum Value {
|
|||
/// Score struct keeps a midgame and an endgame value in a single
|
||||
/// ScoreValue 64 bit union.
|
||||
|
||||
enum Score;
|
||||
enum Score {};
|
||||
|
||||
inline Value eg_value(Score s) { return Value(int16_t(s & 0xffff)); }
|
||||
inline Value mg_value(Score s) { return Value((int(s) + 32768) >> 16); }
|
||||
|
|
Loading…
Add table
Reference in a new issue