Fixed compilation warning in case char type is signed

git-svn-id: http://pugixml.googlecode.com/svn/trunk@118 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2009-02-28 18:00:42 +00:00
parent a3ef08eed7
commit e5bd53e319

View File

@ -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));