From 0eb2da46865ef6ebf45e8da9c980da89e5f3aa3d Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 24 Jun 2009 12:05:56 +0000 Subject: Fix multithreaded XPath evaluation git-svn-id: http://pugixml.googlecode.com/svn/trunk@122 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixpath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pugixpath.cpp') 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 -- cgit v1.2.3