summaryrefslogtreecommitdiff
path: root/core/fpdftext
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-26 08:45:31 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-26 08:45:31 -0700
commit16b703cb504abedbae3e14f69c1ae355363a7ad8 (patch)
treee3561dae57648b23312c06991d96795ef0524b6c /core/fpdftext
parent04c1009af887eb5d3a183dd26421f644f63d8b77 (diff)
downloadpdfium-16b703cb504abedbae3e14f69c1ae355363a7ad8.tar.xz
Fix some bool/int mismatches.
Found by winxfa bot when fx_bool defined to bool. Review-Url: https://codereview.chromium.org/2449293002
Diffstat (limited to 'core/fpdftext')
-rw-r--r--core/fpdftext/cpdf_textpagefind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdftext/cpdf_textpagefind.cpp b/core/fpdftext/cpdf_textpagefind.cpp
index 9ccfcea86f..1eb5c4e67b 100644
--- a/core/fpdftext/cpdf_textpagefind.cpp
+++ b/core/fpdftext/cpdf_textpagefind.cpp
@@ -101,7 +101,7 @@ FX_BOOL CPDF_TextPageFind::FindFirst(const CFX_WideString& findwhat,
findwhatStr.MakeLower();
m_strText.MakeLower();
}
- m_bMatchWholeWord = flags & FPDFTEXT_MATCHWHOLEWORD;
+ m_bMatchWholeWord = !!(flags & FPDFTEXT_MATCHWHOLEWORD);
m_findNextStart = startPos;
if (startPos == -1)
m_findPreStart = m_strText.GetLength() - 1;