mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Use templetized operations for File and Rank
Doing the conversion the compiler is now able to spot two possible ambiguity calls that now we can easily fix. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -182,7 +182,7 @@ void Position::from_fen(const string& fen) {
|
||||
{
|
||||
if (isdigit(token))
|
||||
{
|
||||
file += token - '0'; // Skip the given number of files
|
||||
file += File(token - '0'); // Skip the given number of files
|
||||
continue;
|
||||
}
|
||||
else if (token == '/')
|
||||
|
||||
Reference in New Issue
Block a user