Index: core/fxge/ge/fx_ge_fontmap.cpp |
diff --git a/core/fxge/ge/fx_ge_fontmap.cpp b/core/fxge/ge/fx_ge_fontmap.cpp |
index dc49e3ea37d9ff832e5a4f829cb0e756afc42df4..8f9dad837edbc224894412151bc2f83ad4ac2f9f 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); |