diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-09-27 22:44:33 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-09-27 22:48:45 +0300 |
commit | 82836f28150a48a5ffce41d189cc8a62393c2ae0 (patch) | |
tree | 8c695ee7c1d991476e3cf3a0d35f4cc8319e6334 /idlc | |
parent | 296823ab8634b0980fc8fe81a2de2b043d036179 (diff) |
WaE: comparison between signed and unsigned integer expressions
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/idlccompile.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx index 281d2b2f099e..8e3d4d4017d5 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); |