summaryrefslogtreecommitdiff
path: root/store/source/stordata.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'store/source/stordata.cxx')
-rw-r--r--store/source/stordata.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/store/source/stordata.cxx b/store/source/stordata.cxx
index 27942d33ca11..d18592fd2bff 100644
--- a/store/source/stordata.cxx
+++ b/store/source/stordata.cxx
@@ -218,7 +218,7 @@ storeError OStoreIndirectionPageObject::read (
// Check arguments.
sal_uInt16 const nLimit = rPage.capacityCount();
- if (!(nSingle < nLimit))
+ if (nSingle >= nLimit)
return store_E_InvalidAccess;
// Obtain data page location.
@@ -308,7 +308,7 @@ storeError OStoreIndirectionPageObject::write (
// Check arguments.
sal_uInt16 const nLimit = rPage.capacityCount();
- if (!(nSingle < nLimit))
+ if (nSingle >= nLimit)
return store_E_InvalidAccess;
// Obtain data page location.
@@ -416,7 +416,7 @@ storeError OStoreIndirectionPageObject::truncate (
// Check arguments.
sal_uInt16 const nLimit = rPage.capacityCount();
- if (!(nSingle < nLimit))
+ if (nSingle >= nLimit)
return store_E_InvalidAccess;
// Truncate.