include/tools/bigint.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 820901f91513ec4db2911a06f28b9d15417088fe Author: Fridrich Å trba <[email protected]> Date: Mon Jun 10 14:27:58 2013 +0200 WaE: comparison between signed and unsigned integer expressions Change-Id: I3b5e3a8bf4bbecf6bf697b91c9a16ec19045bfdf diff --git a/include/tools/bigint.hxx b/include/tools/bigint.hxx index d3a2c2f..0cf47ad 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;
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
