mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Fix enum Value issue with gcc 4.4
Louis Zulli reports a miscompile with g++-4.4 from MacPorts. Namely enum Value is compiled as unsigned instead of signed integer and this yields an issue in score_string() where float(v) is incorrectly casted when Value v is negative. This patch ensure that compiler choses a signed variable to store a Value. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
a1b8c8109b
commit
806c1d8723
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ enum Value {
|
|||
VALUE_KNOWN_WIN = 15000,
|
||||
VALUE_MATE = 30000,
|
||||
VALUE_INFINITE = 30001,
|
||||
VALUE_NONE = 30002
|
||||
VALUE_NONE = 30002,
|
||||
VALUE_ENSURE_SIGNED = -1
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue