[Libreoffice-commits] .: binfilter/bf_sfx2

Stephan Bergmann sbergmann at kemper.freedesktop.org
Thu Sep 29 00:19:00 PDT 2011


 binfilter/bf_sfx2/source/bastyp/sfx2_minarray.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2a1f2dc8b3e1d0a7fc468f6c25a18d7fc2baccee
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Sep 29 09:18:18 2011 +0200

    Some more warning cleanup (Mac OS X).

diff --git a/binfilter/bf_sfx2/source/bastyp/sfx2_minarray.cxx b/binfilter/bf_sfx2/source/bastyp/sfx2_minarray.cxx
index bacb3f7..bb2a1e5 100644
--- a/binfilter/bf_sfx2/source/bastyp/sfx2_minarray.cxx
+++ b/binfilter/bf_sfx2/source/bastyp/sfx2_minarray.cxx
@@ -154,7 +154,7 @@ namespace binfilter {
 /*N*/ void SfxPtrArr::Insert( USHORT nPos, void* rElem )
 /*N*/ {
 /*N*/   DBG_MEMTEST();
-/*N*/   DBG_ASSERT( (nUsed+1) < ( USHRT_MAX / sizeof(void*) ), "array too large" );
+/*N*/   DBG_ASSERT( sal_Int32(nUsed+1) < sal_Int32( USHRT_MAX / sizeof(void*) ), "array too large" );
 /*N*/   // musz das Array umkopiert werden?
 /*N*/   if ( nUnused == 0 )
 /*N*/   {


More information about the Libreoffice-commits mailing list