diff options
author | Eike Rathke <erack@redhat.com> | 2016-10-04 19:48:40 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-10-04 20:11:29 +0200 |
commit | 9db395d02a87605834c4c74f163861c5cbd14548 (patch) | |
tree | 7fd0ce28565d69f296a84a873f95b2ab4b1f4e70 /sal | |
parent | can now remove both PopupContainer copies (diff) | |
download | core-9db395d02a87605834c4c74f163861c5cbd14548.tar.gz core-9db395d02a87605834c4c74f163861c5cbd14548.zip |
isRepresentableInteger: assert(fAbsValue >= 0.0)
Change-Id: Idf140b312617e2a3a739cb5571d1b29ef700315c
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/math.cxx | 1 |
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)) { |