WaE: comparison between signed and unsigned integer expressions

Change-Id: I3b5e3a8bf4bbecf6bf697b91c9a16ec19045bfdf
This commit is contained in:
Fridrich Štrba
2013-06-10 14:27:58 +02:00
parent 4e41227dd6
commit 820901f915

View File

@@ -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;