1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 08:13:08 +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:
Marco Costalba 2008-09-01 08:03:21 +02:00
parent bb751d6c89
commit b8e487ff9c

View file

@ -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++;
}