[PATCH] mlang: Fix scripts values in fnIMLangFontLink2_GetScriptFontInfo().
Serge Gautherie
winehq-git_serge_180711 at gautherie.fr
Thu Jul 9 21:55:01 CDT 2020
Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
---
MSVC:
'...\mlang.c(3568): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)'
---
dlls/mlang/mlang.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mlang/mlang.c b/dlls/mlang/mlang.c
index 1b1aed3..a209cc4 100644
--- a/dlls/mlang/mlang.c
+++ b/dlls/mlang/mlang.c
@@ -3565,7 +3565,7 @@ static HRESULT WINAPI fnIMLangFontLink2_GetScriptFontInfo(IMLangFontLink2* This,
{
if (j >= *puiFonts) break;
- pScriptFont[j].scripts = 1 << mlang_data[i].sid;
+ pScriptFont[j].scripts = 1LL << mlang_data[i].sid;
if (dwFlags == SCRIPTCONTF_FIXED_FONT)
{
MultiByteToWideChar(CP_ACP, 0, mlang_data[i].fixed_font, -1,
--
2.10.0.windows.1
More information about the wine-devel
mailing list