diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-12-05 12:41:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-12-05 13:54:04 +0100 |
commit | 3486d31f1c2bc89cc2b7fda69e89cc54f2de8dc7 (patch) | |
tree | ca2757b89ee2f7f0dd22a17bd8ee86fec63316bd /sw | |
parent | c1a2a6cb5698de6461335a527bdc5ada609668d4 (diff) |
Avoid mixed signed/unsigned warning.
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/bastyp/swcache.cxx | 5 |
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 |