diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-06-24 12:05:56 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-06-24 12:05:56 +0000 |
commit | 0eb2da46865ef6ebf45e8da9c980da89e5f3aa3d (patch) | |
tree | 0ee4af8d920c594e803df8d72a46d87cf2d203b9 /src | |
parent | c95b553a81dc92bb7d7da603445f567e4dc7bfb3 (diff) |
Fix multithreaded XPath evaluation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@122 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r-- | src/pugixpath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp index 6c62fa4..8111b23 100644 --- a/src/pugixpath.cpp +++ b/src/pugixpath.cpp @@ -322,12 +322,12 @@ namespace return (value != 0 && !is_nan(value));
}
- const char* convert_number_to_string(double value)
+ std::string convert_number_to_string(double value)
{
if (is_nan(value)) return "NaN";
else if (is_inf(value)) return value < 0 ? "-Infinity" : "Infinity";
- static char buf[100];
+ char buf[100];
if (value == (int)value) sprintf(buf, "%d", (int)value);
else
|