diff options
-rw-r--r-- | include/tools/bigint.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/bigint.hxx b/include/tools/bigint.hxx index d3a2c2f2cff5..0cf47ad4aaa0 100644 --- a/include/tools/bigint.hxx +++ b/include/tools/bigint.hxx @@ -182,7 +182,7 @@ inline BigInt::operator int() const inline BigInt::operator sal_uInt16() const { - if ( !bIsBig && nVal >= 0 && nVal <= USHRT_MAX ) + if ( !bIsBig && nVal >= 0 && nVal <= (long)USHRT_MAX ) return (sal_uInt16)nVal; else return 0; |