diff options
-rw-r--r-- | store/source/lockbyte.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/store/source/lockbyte.cxx b/store/source/lockbyte.cxx index 59bd50fc0397..fff199956087 100644 --- a/store/source/lockbyte.cxx +++ b/store/source/lockbyte.cxx @@ -90,7 +90,7 @@ storeError ILockBytes::readAt (sal_uInt32 nOffset, void * pBuffer, sal_uInt32 nB if (nOffset == STORE_PAGE_NULL) return store_E_CantSeek; - sal_uInt64 const src_size = nOffset + nBytes; + sal_uInt64 const src_size = static_cast<sal_uInt64>(nOffset) + nBytes; if (src_size > SAL_MAX_UINT32) return store_E_CantSeek; @@ -112,7 +112,7 @@ storeError ILockBytes::writeAt (sal_uInt32 nOffset, void const * pBuffer, sal_uI if (nOffset == STORE_PAGE_NULL) return store_E_CantSeek; - sal_uInt64 const dst_size = nOffset + nBytes; + sal_uInt64 const dst_size = static_cast<sal_uInt64>(nOffset) + nBytes; if (dst_size > SAL_MAX_UINT32) return store_E_CantSeek; |