diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/win32ole/win32ole.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c index 3a986111ac..177e39af7f 100644 --- a/ext/win32ole/win32ole.c +++ b/ext/win32ole/win32ole.c @@ -1180,7 +1180,7 @@ ole_excepinfo2msg(EXCEPINFO *pExInfo) pDescription = ole_wc2mb(pExInfo->bstrDescription); } if(pExInfo->wCode == 0) { - sprintf(error_code, "\n OLE error code:%lX in ", pExInfo->scode); + sprintf(error_code, "\n OLE error code:%lX in ", (unsigned long)pExInfo->scode); } else{ sprintf(error_code, "\n OLE error code:%u in ", pExInfo->wCode); @@ -3112,7 +3112,7 @@ static BOOL lcid_installed(LCID lcid) { g_lcid_installed = FALSE; - snprintf(g_lcid_to_check, sizeof(g_lcid_to_check), "%08lx", lcid); + snprintf(g_lcid_to_check, sizeof(g_lcid_to_check), "%08lx", (unsigned long)lcid); EnumSystemLocales(installed_lcid_proc, LCID_INSTALLED); return g_lcid_installed; } |