summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-12-05 12:41:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-12-05 13:54:04 +0100
commit3486d31f1c2bc89cc2b7fda69e89cc54f2de8dc7 (patch)
treeca2757b89ee2f7f0dd22a17bd8ee86fec63316bd /sw
parentc1a2a6cb5698de6461335a527bdc5ada609668d4 (diff)
Avoid mixed signed/unsigned warning.
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/bastyp/swcache.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/bastyp/swcache.cxx b/sw/source/core/bastyp/swcache.cxx
index 8c8b997ba2eb..1eebe328022b 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