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:
parent
bb751d6c89
commit
b8e487ff9c
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue