[Libreoffice-commits] .: idlc/source

Tor Lillqvist tml at kemper.freedesktop.org
Tue Sep 27 12:48:52 PDT 2011


 idlc/source/idlccompile.cxx |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

New commits:
commit 82836f28150a48a5ffce41d189cc8a62393c2ae0
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Sep 27 22:44:33 2011 +0300

    WaE: comparison between signed and unsigned integer expressions

diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx
index 281d2b2..8e3d4d4 100644
--- a/idlc/source/idlccompile.cxx
+++ b/idlc/source/idlccompile.cxx
@@ -152,12 +152,11 @@ OString makeTempName(const OString& prefix)
 
 #if defined(SAL_W32) || defined(SAL_UNX)
 
-    OSL_ASSERT( sizeof(tmpFilePattern) > ( tmpPath.getLength()
-                                           + RTL_CONSTASCII_LENGTH(
-                                                PATH_SEPARATOR )
-                                           + prefix.getLength()
-                                           + RTL_CONSTASCII_LENGTH(
-                                                "XXXXXX") ) );
+    OSL_ASSERT( sizeof(tmpFilePattern) >
+                (size_t) ( tmpPath.getLength()
+                           + RTL_CONSTASCII_LENGTH( PATH_SEPARATOR )
+                           + prefix.getLength()
+                           + RTL_CONSTASCII_LENGTH( "XXXXXX") ) );
 
     tmpFilePattern[ sizeof(tmpFilePattern)-1 ] = '\0';
     strncpy(tmpFilePattern, tmpPath.getStr(), sizeof(tmpFilePattern)-1);


More information about the Libreoffice-commits mailing list