diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-11 12:12:04 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-11 12:12:04 -0800 |
commit | e565cc1ec4ff0cd8c4dc8668138592663a1ef07e (patch) | |
tree | 3fd039d61575ea46ef65cc63ea798a6a7b5099ca /xfa | |
parent | 0f2ea02eb3d817993f3a5be0a5fa48f602e56483 (diff) | |
download | pdfium-e565cc1ec4ff0cd8c4dc8668138592663a1ef07e.tar.xz |
XFA: Fix the Mac build after commit 375a86403b7f.
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1578003002 .
Diffstat (limited to 'xfa')
-rw-r--r-- | xfa/src/fgas/src/crt/fx_stream.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/src/fgas/src/crt/fx_stream.cpp b/xfa/src/fgas/src/crt/fx_stream.cpp index fb8c3c7fba..9663351602 100644 --- a/xfa/src/fgas/src/crt/fx_stream.cpp +++ b/xfa/src/fgas/src/crt/fx_stream.cpp @@ -1323,8 +1323,9 @@ FX_BOOL CFX_BufferAccImp::ReadBlock(void* buffer, return FALSE;
}
const uint8_t* pBuffer = m_pBufferRead->GetBlockBuffer();
- FX_FILESIZE dwOffset = offset - dwBlockOffset;
- size_t dwCopySize = std::min(size, dwBlockSize - dwOffset);
+ const FX_FILESIZE dwOffset = offset - dwBlockOffset;
+ size_t dwCopySize =
+ std::min(size, static_cast<size_t>(dwBlockSize - dwOffset));
FXSYS_memcpy(buffer, pBuffer + dwOffset, dwCopySize);
offset = dwCopySize;
size -= dwCopySize;
|