mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 02:47:45 +00: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:
+1
-1
@@ -119,7 +119,7 @@ namespace {
|
|||||||
// characters from the current location in an input string.
|
// characters from the current location in an input string.
|
||||||
|
|
||||||
void UCIInputParser::skip_whitespace() {
|
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++;
|
this->currentIndex++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user