WaE: comparison between signed and unsigned integer expressions
Change-Id: I3b5e3a8bf4bbecf6bf697b91c9a16ec19045bfdf
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user