summaryrefslogtreecommitdiff
path: root/core/src/fxge
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-02-12 15:51:59 -0800
committerTom Sepez <tsepez@chromium.org>2016-02-12 15:51:59 -0800
commit45fe3c2eefd57b48d7307f9efe13d8019c96e489 (patch)
tree65171335463ed9947d434454d0e70aae59dd9bb4 /core/src/fxge
parent5a5f1f1c905f2c352d2fbde143456124dd2c0fbf (diff)
downloadpdfium-45fe3c2eefd57b48d7307f9efe13d8019c96e489.tar.xz
Remove the FX_MIN macro.
Bin the min, bin the min, bin the min, bin the min, bin the min, bin the min, bin the min, bin the min, bin the min, bin the min, bin the min, bin the min, bin the min. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1693913003 .
Diffstat (limited to 'core/src/fxge')
-rw-r--r--core/src/fxge/win32/fx_win32_gdipext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxge/win32/fx_win32_gdipext.cpp b/core/src/fxge/win32/fx_win32_gdipext.cpp
index 1e4f89540b..2d37865437 100644
--- a/core/src/fxge/win32/fx_win32_gdipext.cpp
+++ b/core/src/fxge/win32/fx_win32_gdipext.cpp
@@ -1302,7 +1302,7 @@ class GpStream final : public IStream {
return HRESULT_FROM_WIN32(ERROR_END_OF_MEDIA);
}
bytes_left = m_InterStream.GetLength() - m_ReadPos;
- bytes_out = FX_MIN(cb, bytes_left);
+ bytes_out = std::min(pdfium::base::checked_cast<size_t>(cb), bytes_left);
FXSYS_memcpy(Output, m_InterStream.GetBuffer() + m_ReadPos, bytes_out);
m_ReadPos += (int32_t)bytes_out;
if (pcbRead) {