From 9db395d02a87605834c4c74f163861c5cbd14548 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 4 Oct 2016 19:48:40 +0200 Subject: isRepresentableInteger: assert(fAbsValue >= 0.0) Change-Id: Idf140b312617e2a3a739cb5571d1b29ef700315c --- sal/rtl/math.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sal/rtl') 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(1) << 53) - 1; if (fAbsValue <= static_cast(kMaxInt)) { -- cgit