From b8e487ff9caffb5061f680b1919ab2fe442bc0a1 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Mon, 1 Sep 2008 08:03:21 +0200 Subject: [PATCH] Avoid casts to handle isspace() arguments Use proper standard conversion to deal with negative values of a char. Signed-off-by: Marco Costalba --- src/uci.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uci.cpp b/src/uci.cpp index 66a2ade3..a3b4d8c0 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -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::to_int_type(this->inputLine[this->currentIndex]))) this->currentIndex++; } -- 2.39.2