summaryrefslogtreecommitdiff
path: root/sal/rtl/source
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-10-28 15:50:12 +0200
committersb <sb@openoffice.org>2010-10-28 15:50:12 +0200
commita8fcfe71a0c236d31444922984b577c600bfd120 (patch)
tree66a3ab241e32873ea83a82472f72e08fa604b4ce /sal/rtl/source
parenta30ca9cb0a7fb85e7fd9d9b24701e99c608be82d (diff)
sb132: #i114840# fix inadvertent deviation of stringToDouble from C99 strtod
Diffstat (limited to 'sal/rtl/source')
-rw-r--r--sal/rtl/source/math.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}