summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-09-21 00:35:57 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-09-21 00:35:57 -0700
commit3229e677120550a5a40b5b37ec46de6c2cad974c (patch)
tree172bbed7c7045f2047960660c52cdb54cc2381ac /src
parentb0b84277fadc234fa994a41fa2e9c042581b3eba (diff)
Fix parsing of integers that start with +
This matches the format strtol supports.
Diffstat (limited to 'src')
-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;