]> git.sesse.net Git - stockfish/commitdiff
Score definition gives a compile error under gcc
authorMarco Costalba <mcostalba@gmail.com>
Mon, 21 Dec 2009 06:15:53 +0000 (07:15 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 21 Dec 2009 10:44:11 +0000 (11:44 +0100)
For enum definitions a parenthesis is required.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/value.h

index 3d23f5054c3f71c726ca2b387a6c57ec99c99923..4f19cdaa554b64f29a2d9c820dd1e2c77012f632 100644 (file)
@@ -55,7 +55,7 @@ enum Value {
 /// Score struct keeps a midgame and an endgame value in a single
 /// ScoreValue 64 bit union.
 
 /// 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); }
 
 inline Value eg_value(Score s) { return Value(int16_t(s & 0xffff)); }
 inline Value mg_value(Score s) { return Value((int(s) + 32768) >> 16); }