summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-10-04 19:48:40 +0200
committerEike Rathke <erack@redhat.com>2016-10-04 20:11:29 +0200
commit9db395d02a87605834c4c74f163861c5cbd14548 (patch)
tree7fd0ce28565d69f296a84a873f95b2ab4b1f4e70 /sal
parent349f4923e265d76cfd76627796dc93e99e0b5d02 (diff)
isRepresentableInteger: assert(fAbsValue >= 0.0)
Change-Id: Idf140b312617e2a3a739cb5571d1b29ef700315c
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/math.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 1df123bb095c..789c1354dfa7 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -154,6 +154,7 @@ struct UStringTraits
*/
bool isRepresentableInteger(double fAbsValue)
{
+ assert(fAbsValue >= 0.0);
const sal_Int64 kMaxInt = (static_cast<sal_Int64>(1) << 53) - 1;
if (fAbsValue <= static_cast<double>(kMaxInt))
{