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:
Marco Costalba
2010-08-18 16:17:20 +01:00
parent 80bee85d5f
commit 4ce08482c3
4 changed files with 9 additions and 18 deletions

View File

@@ -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 == '/')