summaryrefslogtreecommitdiff
path: root/xfa/src/fgas
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-01-11 12:12:04 -0800
committerLei Zhang <thestig@chromium.org>2016-01-11 12:12:04 -0800
commite565cc1ec4ff0cd8c4dc8668138592663a1ef07e (patch)
tree3fd039d61575ea46ef65cc63ea798a6a7b5099ca /xfa/src/fgas
parent0f2ea02eb3d817993f3a5be0a5fa48f602e56483 (diff)
downloadpdfium-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/src/fgas')
-rw-r--r--xfa/src/fgas/src/crt/fx_stream.cpp5
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;