[Libreoffice-commits] core.git: include/tools

Fridrich Å trba fridrich.strba at bluewin.ch
Mon Jun 10 05:32:36 PDT 2013


 include/tools/bigint.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 820901f91513ec4db2911a06f28b9d15417088fe
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
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;


More information about the Libreoffice-commits mailing list