summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_dataavail.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-28 11:34:42 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-28 11:34:42 -0700
commit95e5834ab6b6e5aa370cacd6266cecbd82c4c155 (patch)
treea948ed773fe1faad6a6b2f4111e8f0c897ef4f40 /fpdfsdk/fpdf_dataavail.cpp
parent159ba95782e0610b217c42a60bbfbd99737e0771 (diff)
downloadpdfium-95e5834ab6b6e5aa370cacd6266cecbd82c4c155.tar.xz
Continue fixing FX_BOOL / int noise
Review-Url: https://codereview.chromium.org/2459073002
Diffstat (limited to 'fpdfsdk/fpdf_dataavail.cpp')
-rw-r--r--fpdfsdk/fpdf_dataavail.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_dataavail.cpp b/fpdfsdk/fpdf_dataavail.cpp
index 45d3b2aa5d..481dd3b60f 100644
--- a/fpdfsdk/fpdf_dataavail.cpp
+++ b/fpdfsdk/fpdf_dataavail.cpp
@@ -50,7 +50,7 @@ class CFPDF_FileAvailWrap : public CPDF_DataAvail::FileAvail {
// CPDF_DataAvail::FileAvail:
FX_BOOL IsDataAvail(FX_FILESIZE offset, uint32_t size) override {
- return m_pfileAvail->IsDataAvail(m_pfileAvail, offset, size);
+ return !!m_pfileAvail->IsDataAvail(m_pfileAvail, offset, size);
}
private:
@@ -117,7 +117,7 @@ DLLEXPORT FPDF_AVAIL STDCALL FPDFAvail_Create(FX_FILEAVAIL* file_avail,
pAvail->m_FileAvail.Set(file_avail);
pAvail->m_FileRead.Set(file);
pAvail->m_pDataAvail = pdfium::MakeUnique<CPDF_DataAvail>(
- &pAvail->m_FileAvail, &pAvail->m_FileRead, TRUE);
+ &pAvail->m_FileAvail, &pAvail->m_FileRead, true);
return pAvail;
}