Kaydet (Commit) bc1a0a83 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: C4754

VS 2013 warns: Conversion rules for arithmetic operations in the
comparison mean that one branch cannot be executed.

Change-Id: I85f6df16b0ced94677568441d87a588bed1bfb9b
üst 108ad267
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment