From e5bd53e319e8c5319fce593e6eaf2484be91957f Mon Sep 17 00:00:00 2001
From: "arseny.kapoulkine"
 <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>
Date: Sat, 28 Feb 2009 18:00:42 +0000
Subject: Fixed compilation warning in case char type is signed

git-svn-id: http://pugixml.googlecode.com/svn/trunk@118 99668b35-9821-0410-8761-19e4c4f06640
---
 src/pugixml.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

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));
-- 
cgit v1.2.3