summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))
{