1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Re-fix square.h warning to avoid a compile error under MSVC

This fix adds ugliness to an already ugly previous fix...hopefully
it is the last one :-(

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2009-04-12 16:45:33 +01:00
parent b893583bb6
commit 44b497a972

View file

@ -164,7 +164,7 @@ inline File file_from_char(char c) {
}
inline char file_to_char(File f) {
return char(f - FILE_A + 'a');
return char(f - FILE_A + int('a'));
}
inline Rank rank_from_char(char c) {
@ -172,7 +172,7 @@ inline Rank rank_from_char(char c) {
}
inline char rank_to_char(Rank r) {
return char(r - RANK_1 + '1');
return char(r - RANK_1 + int('1'));
}
inline Square square_from_string(const std::string& str) {