summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
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 ea6514b..e166142 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -4440,7 +4440,7 @@ PUGI__NS_BEGIN
bool negative = (*s == '-');
- s += negative;
+ s += (*s == '+' || *s == '-');
bool overflow = false;