From a8fcfe71a0c236d31444922984b577c600bfd120 Mon Sep 17 00:00:00 2001 From: sb Date: Thu, 28 Oct 2010 15:50:12 +0200 Subject: sb132: #i114840# fix inadvertent deviation of stringToDouble from C99 strtod --- sal/rtl/source/math.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sal/rtl/source/math.cxx') diff --git a/sal/rtl/source/math.cxx b/sal/rtl/source/math.cxx index d983c5726230..34b940a301c9 100644 --- a/sal/rtl/source/math.cxx +++ b/sal/rtl/source/math.cxx @@ -923,7 +923,7 @@ inline double stringToDouble(CharT const * pBegin, CharT const * pEnd, if (pStatus != 0) *pStatus = eStatus; if (pParsedEnd != 0) - *pParsedEnd = p; + *pParsedEnd = p == p0 ? pBegin : p; return fVal; } -- cgit