mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Avoid casts to handle isspace() arguments
Use proper standard conversion to deal with negative values of a char. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -119,7 +119,7 @@ namespace {
|
||||
// characters from the current location in an input string.
|
||||
|
||||
void UCIInputParser::skip_whitespace() {
|
||||
while(isspace((int)(unsigned char)this->inputLine[this->currentIndex]))
|
||||
while(isspace(std::char_traits<char>::to_int_type(this->inputLine[this->currentIndex])))
|
||||
this->currentIndex++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user