Fix multithreaded XPath evaluation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@122 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
c95b553a81
commit
0eb2da4686
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user