summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-02-28 18:00:42 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-02-28 18:00:42 +0000
commite5bd53e319e8c5319fce593e6eaf2484be91957f (patch)
tree3851cf251a9a1dff4a3db1cc9245d00d9fe7f47a /src/pugixml.cpp
parenta3ef08eed7d92e4b8e0d685c5e124fd5daf211bb (diff)
Fixed compilation warning in case char type is signed
git-svn-id: http://pugixml.googlecode.com/svn/trunk@118 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index deb59f3..a7146a1 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -1442,7 +1442,7 @@ namespace
// While *s is a usual symbol
while (*s && *s != '&' && *s != '<' && *s != '>' && (*s != '"' || !attribute)
- && (*s < 0 || *s >= 32 || (*s == '\r' && !attribute) || (*s == '\n' && !attribute) || *s == '\t'))
+ && ((unsigned char)*s >= 32 || (*s == '\r' && !attribute) || (*s == '\n' && !attribute) || *s == '\t'))
++s;
writer.write(prev, static_cast<size_t>(s - prev));