Kaydet (Commit) 820901f9 authored tarafından Fridrich Štrba's avatar Fridrich Štrba

WaE: comparison between signed and unsigned integer expressions

Change-Id: I3b5e3a8bf4bbecf6bf697b91c9a16ec19045bfdf
üst 4e41227d
...@@ -182,7 +182,7 @@ inline BigInt::operator int() const ...@@ -182,7 +182,7 @@ inline BigInt::operator int() const
inline BigInt::operator sal_uInt16() 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; return (sal_uInt16)nVal;
else else
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment