diff options
author | Eike Rathke <erack@redhat.com> | 2016-06-27 20:13:40 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-06-27 20:28:25 +0200 |
commit | 08d8642491771577bfadeaedf3e03bdcea404d26 (patch) | |
tree | 2a3b0266117a5817e6c1a6e9f01ffb4ebe93d814 /sal/rtl | |
parent | 1df394503f1e62b091453c95c05a212892ae8d58 (diff) |
stringToDouble() fix broken reverse logic for NaN and INF
... and do not test up to three characters if the string is shorter..
Change-Id: I52b74cbde10c14c991cc8c68760c87c1e08ab7e4
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/math.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index 63aa65710f2a..92de8b63f658 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -669,7 +669,7 @@ inline double stringToDouble(CharT const * pBegin, CharT const * pEnd, bool bDone = false; // #i112652# XMLSchema-2 - if (3 >= (pEnd - p)) + if (3 <= (pEnd - p)) { if ((CharT('N') == p[0]) && (CharT('a') == p[1]) && (CharT('N') == p[2])) |