From 461129efe889fa7d653c8c4620a12179eeddd5ec Mon Sep 17 00:00:00 2001 From: weili Date: Tue, 12 Apr 2016 14:47:46 -0700 Subject: Fix the code which causes Windows GN build warning The signed/unsigned comparison is causing the chromium windows GN build broken. Review URL: https://codereview.chromium.org/1884773002 --- core/fxge/ge/fx_ge_fontmap.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'core/fxge/ge') 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(Charset); + }); if (it == m_FaceArray.end()) { return UseInternalSubst(pSubstFont, iBaseFont, italic_angle, old_weight, PitchFamily); -- cgit v1.2.3