diff options
author | tsepez <tsepez@chromium.org> | 2016-10-26 15:33:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-26 15:33:58 -0700 |
commit | f39074c0ae47a84c496782f8b75bcce1e1cfdf59 (patch) | |
tree | 077b7f12bff3c4aa4d53c6b74fa32e613cc73a27 /fpdfsdk/fpdf_dataavail.cpp | |
parent | e5cb0b191aed020da99757c117dae014ea65c6ba (diff) | |
download | pdfium-f39074c0ae47a84c496782f8b75bcce1e1cfdf59.tar.xz |
Fix some FX_BOOL / int noise in fxcrt.chromium/2902
Review-Url: https://codereview.chromium.org/2450183003
Diffstat (limited to 'fpdfsdk/fpdf_dataavail.cpp')
-rw-r--r-- | fpdfsdk/fpdf_dataavail.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/fpdf_dataavail.cpp b/fpdfsdk/fpdf_dataavail.cpp index 0bf67e9826..45d3b2aa5d 100644 --- a/fpdfsdk/fpdf_dataavail.cpp +++ b/fpdfsdk/fpdf_dataavail.cpp @@ -67,9 +67,9 @@ class CFPDF_FileAccessWrap : public IFX_SeekableReadStream { // IFX_SeekableReadStream FX_FILESIZE GetSize() override { return m_pFileAccess->m_FileLen; } - FX_BOOL ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override { - return m_pFileAccess->m_GetBlock(m_pFileAccess->m_Param, offset, - (uint8_t*)buffer, size); + bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override { + return !!m_pFileAccess->m_GetBlock(m_pFileAccess->m_Param, offset, + (uint8_t*)buffer, size); } void Release() override {} |