diff options
author | sb <sb@openoffice.org> | 2010-10-28 15:50:12 +0200 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-10-28 15:50:12 +0200 |
commit | a8fcfe71a0c236d31444922984b577c600bfd120 (patch) | |
tree | 66a3ab241e32873ea83a82472f72e08fa604b4ce /sal/rtl | |
parent | a30ca9cb0a7fb85e7fd9d9b24701e99c608be82d (diff) |
sb132: #i114840# fix inadvertent deviation of stringToDouble from C99 strtod
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/source/math.cxx | 2 |
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; } |