summaryrefslogtreecommitdiff
path: root/src/pugixpath.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-08 13:01:56 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-08 13:01:56 +0000
commiteaa078b76a6be5417e73b3fc4f5f78642d3ca6c4 (patch)
tree8f725e5226ae7797a0ae258aa20b617265eb2dd3 /src/pugixpath.cpp
parentb1f1de5a7a98b66f557e5254f66e6d7cd2756224 (diff)
XPath: Fixed minor string to number conversion bug
git-svn-id: http://pugixml.googlecode.com/svn/trunk@219 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixpath.cpp')
-rw-r--r--src/pugixpath.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp
index 70fe612..4897523 100644
--- a/src/pugixpath.cpp
+++ b/src/pugixpath.cpp
@@ -387,7 +387,7 @@ namespace
if (is_chartype(*string, ct_space))
{
while (is_chartype(*string, ct_space)) ++string;
- if (*string) return gen_nan();
+ return *string ? gen_nan() : r;
}
if (*string != '.') return gen_nan();