Index: core/src/fxge/android/fpf_skiafontmgr.cpp |
diff --git a/core/src/fxge/android/fpf_skiafontmgr.cpp b/core/src/fxge/android/fpf_skiafontmgr.cpp |
index cf93e5beaf1c716e25e5d1a2239a060ef6e89464..4380732eb1a2d04802da7394404bf32a8cc3f9eb 100644 |
--- a/core/src/fxge/android/fpf_skiafontmgr.cpp |
+++ b/core/src/fxge/android/fpf_skiafontmgr.cpp |
@@ -283,7 +283,7 @@ IFPF_Font* CFPF_SkiaFontMgr::CreateFont(FX_BSTR bsFamilyname, FX_BYTE uCharset, |
{ |
FX_DWORD dwHash = FPF_SKIAGetFamilyHash(bsFamilyname, dwStyle, uCharset); |
IFPF_Font *pFont = NULL; |
- if (m_FamilyFonts.Lookup((void*)dwHash, (void*&)pFont)) { |
+ if (m_FamilyFonts.Lookup((void*)(FX_UINTPTR)dwHash, (void*&)pFont)) { |
if (pFont) { |
return pFont->Retain(); |
} |
@@ -355,7 +355,7 @@ IFPF_Font* CFPF_SkiaFontMgr::CreateFont(FX_BSTR bsFamilyname, FX_BYTE uCharset, |
CFPF_SkiaFont *pFont = FX_NEW CFPF_SkiaFont; |
if (pFont) { |
if (pFont->InitFont(this, pFontDes, bsFamilyname, dwStyle, uCharset)) { |
- m_FamilyFonts.SetAt((void*)dwHash, (void*)pFont); |
+ m_FamilyFonts.SetAt((void*)(FX_UINTPTR)dwHash, (void*)pFont); |
return pFont->Retain(); |
} |
pFont->Release(); |