From 3229e677120550a5a40b5b37ec46de6c2cad974c Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Mon, 21 Sep 2015 00:35:57 -0700 Subject: Fix parsing of integers that start with + This matches the format strtol supports. --- src/pugixml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pugixml.cpp') 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; -- cgit v1.2.3