projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
bb751d6
)
Avoid casts to handle isspace() arguments
author
Marco Costalba
<mcostalba@gmail.com>
Mon, 1 Sep 2008 06:03:21 +0000 (08:03 +0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Mon, 1 Sep 2008 06:03:21 +0000 (08:03 +0200)
Use proper standard conversion to deal
with negative values of a char.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/uci.cpp
patch
|
blob
|
history
diff --git
a/src/uci.cpp
b/src/uci.cpp
index
66a2ade
..
a3b4d8c
100644
(file)
--- 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<char>::to_int_type(this->inputLine[this->currentIndex])))
this->currentIndex++;
}