summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-07-08 00:16:14 +0300
committerTor Lillqvist <tml@collabora.com>2014-07-08 00:18:44 +0300
commitbc1a0a8382fad035d87e530ca87f8a52b4a807bb (patch)
tree6eee25df52cf215a51a173428ea48b1a188c54ae /store
parent108ad26747f6fa6667dd65759d64d71e92979742 (diff)
WaE: C4754
VS 2013 warns: Conversion rules for arithmetic operations in the comparison mean that one branch cannot be executed. Change-Id: I85f6df16b0ced94677568441d87a588bed1bfb9b
Diffstat (limited to 'store')
-rw-r--r--store/source/lockbyte.cxx4
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;