[Libreoffice-commits] .: sw/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Mon Dec 5 04:54:56 PST 2011


 sw/source/core/bastyp/swcache.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 3486d31f1c2bc89cc2b7fda69e89cc54f2de8dc7
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Dec 5 12:41:37 2011 +0100

    Avoid mixed signed/unsigned warning.

diff --git a/sw/source/core/bastyp/swcache.cxx b/sw/source/core/bastyp/swcache.cxx
index 8c8b997..1eebe32 100644
--- a/sw/source/core/bastyp/swcache.cxx
+++ b/sw/source/core/bastyp/swcache.cxx
@@ -73,8 +73,9 @@ void SwCache::Check()
     }
     OSL_ENSURE( bFirstFound, "First not Found." );
     OSL_ENSURE( (nCnt + aFreePositions.size()) == Count(), "Lost Chain." );
-    if ( Count() == nCurMax )
-        OSL_ENSURE( (nCurMax - nCnt) == aFreePositions.size(), "Lost FreePositions." );
+    OSL_ENSURE(
+        Count() != nCurMax || nCurMax == aFreePositions.size() + nCnt,
+        "Lost FreePositions." );
 }
 #endif
 


More information about the Libreoffice-commits mailing list