* ext/win32ole/win32ole.c (ole_excepinfo2msg, lcid_installed):
  cast to suppress warnings, SCODE varies on cygwin and mingw.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-04-23 04:14:42 +00:00
Родитель 73706907fb
Коммит 3254b0f3c1
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}