diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-17 18:01:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-17 18:01:59 +0200 |
commit | 7bbd58eafc3146abcefc73d2d1ca6869bb47ef5a (patch) | |
tree | 09a1462b64ebbc64d8773c903c23a6dbb0d6fd7d /sal/rtl/math.cxx | |
parent | 2ed29702ab29240e8e68c9c0f168a551d17f79f6 (diff) |
fdo#70319 "exponent followed by at least on digit" also for special case 0.0
Change-Id: I07e7917417b8a22cf6d64f2b7a447f9084b9fa2d
Diffstat (limited to 'sal/rtl/math.cxx')
-rw-r--r-- | sal/rtl/math.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index f66039a4a3ad..3bca17156c3a 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -819,6 +819,10 @@ inline double stringToDouble(CharT const * pBegin, CharT const * pEnd, // offset while (p != pEnd && rtl::isAsciiDigit(*p)) ++p; + if (p == pFirstExpDigit) + { // no digits in exponent, reset end of scan + p = pExponent; + } } else { |