summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-17 12:58:04 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-17 12:58:04 -0700
commitcf8cfb30ce76943a258950fc07a197bb3b3c784e (patch)
tree9f444405c809185b6da7f7b335530fc3845b262a
parentfd605bc9a73dffaffb7194b5344099b2202645ad (diff)
Fix 'signed/unsigned comparison' warning in wchar mode
Only happens on GCC 3.4 for some reason.
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index b2cc690..06e0bd0 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -4395,7 +4395,7 @@ PUGI__NS_BEGIN
PUGI__STATIC_ASSERT(sizeof(U) == 8 || sizeof(U) == 4 || sizeof(U) == 2);
const size_t max_digits10 = sizeof(U) == 8 ? 20 : sizeof(U) == 4 ? 10 : 5;
- const char max_lead = sizeof(U) == 8 ? '1' : sizeof(U) == 4 ? '4' : '6';
+ const char_t max_lead = sizeof(U) == 8 ? '1' : sizeof(U) == 4 ? '4' : '6';
const size_t high_bit = sizeof(U) * 8 - 1;
overflow = digits >= max_digits10 && !(digits == max_digits10 && (*start < max_lead || (*start == max_lead && result >> high_bit)));