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
diff --git a/core/fxge/ge/fx_ge_fontmap.cpp b/core/fxge/ge/fx_ge_fontmap.cpp
index dc49e3e..8f9dad8 100644
--- a/core/fxge/ge/fx_ge_fontmap.cpp
+++ b/core/fxge/ge/fx_ge_fontmap.cpp
@@ -1156,9 +1156,11 @@
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);