Fix compiler warning where we cast 32bit value to pointer.
This commit is contained in:
committed by
Pasi Kallinen
parent
878a18388c
commit
c9a82e8ae6
@@ -206,11 +206,11 @@ mswin_charset()
|
||||
{
|
||||
CHARSETINFO cis;
|
||||
if (SYMHANDLING(H_IBM))
|
||||
if (TranslateCharsetInfo((DWORD *) GetOEMCP(), &cis, TCI_SRCCODEPAGE))
|
||||
if (TranslateCharsetInfo((DWORD *) (uintptr_t) GetOEMCP(), &cis, TCI_SRCCODEPAGE))
|
||||
return cis.ciCharset;
|
||||
else
|
||||
return OEM_CHARSET;
|
||||
else if (TranslateCharsetInfo((DWORD *) GetACP(), &cis, TCI_SRCCODEPAGE))
|
||||
else if (TranslateCharsetInfo((DWORD *) (uintptr_t) GetACP(), &cis, TCI_SRCCODEPAGE))
|
||||
return cis.ciCharset;
|
||||
else
|
||||
return ANSI_CHARSET;
|
||||
|
||||
Reference in New Issue
Block a user