summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-10 14:27:58 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-10 14:27:58 +0200
commit820901f91513ec4db2911a06f28b9d15417088fe (patch)
tree0331a61c0dd407c6b446e569ad2f71befa139e07
parent4e41227dd6af52ec562d10efcb365defba6bd36e (diff)
WaE: comparison between signed and unsigned integer expressions
Change-Id: I3b5e3a8bf4bbecf6bf697b91c9a16ec19045bfdf
-rw-r--r--include/tools/bigint.hxx2
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;