summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-04-12 14:47:46 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-12 14:47:46 -0700
commit461129efe889fa7d653c8c4620a12179eeddd5ec (patch)
tree62e0a6600364303a0d306da35c099ef8fbd49943
parent6a3521f049b35c801f124f1573718021a785ff6b (diff)
downloadpdfium-chromium/2707.tar.xz
Fix the code which causes Windows GN build warningchromium/2709chromium/2708chromium/2707
The signed/unsigned comparison is causing the chromium windows GN build broken. Review URL: https://codereview.chromium.org/1884773002
-rw-r--r--core/fxge/ge/fx_ge_fontmap.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/fxge/ge/fx_ge_fontmap.cpp b/core/fxge/ge/fx_ge_fontmap.cpp
index dc49e3ea37..8f9dad837e 100644
--- a/core/fxge/ge/fx_ge_fontmap.cpp
+++ b/core/fxge/ge/fx_ge_fontmap.cpp
@@ -1156,9 +1156,11 @@ FXFT_Face CFX_FontMapper::FindSubstFont(const CFX_ByteString& name,
PitchFamily);
}
- auto it = std::find_if(
- m_FaceArray.begin(), m_FaceArray.end(),
- [Charset](const FaceData& face) { return face.charset == Charset; });
+ auto it =
+ std::find_if(m_FaceArray.begin(), m_FaceArray.end(),
+ [Charset](const FaceData& face) {
+ return face.charset == static_cast<uint32_t>(Charset);
+ });
if (it == m_FaceArray.end()) {
return UseInternalSubst(pSubstFont, iBaseFont, italic_angle, old_weight,
PitchFamily);