Fix some x64 type conversion warnings.

This commit is contained in:
Unknown W. Brackets 2013-04-19 08:41:31 -07:00
parent eab2f8dca2
commit 7a7e5ccb0b
3 changed files with 4 additions and 4 deletions

View File

@ -1363,7 +1363,7 @@ int sceKernelAllocateTls(SceUID uid)
for (size_t i = 0; i < tls->ntls.totalBlocks && allocBlock == -1; ++i)
{
if (tls->usage[i] == threadID)
allocBlock = i;
allocBlock = (int) i;
}
if (allocBlock == -1)
@ -1412,7 +1412,7 @@ int sceKernelFreeTls(SceUID uid)
{
if (tls->usage[i] == threadID)
{
freeBlock = i;
freeBlock = (int) i;
break;
}
}

View File

@ -83,7 +83,7 @@ namespace W32Util
sheet.dwFlags |= PSH_USEHICON;
sheet.pszCaption = title.c_str();
sheet.nPages = list.size();
sheet.nPages = (UINT)list.size();
sheet.phpage = pages;
sheet.nStartPage = startpage;
sheet.pfnCallback = (PFNPROPSHEETCALLBACK)Callback;

View File

@ -966,7 +966,7 @@ namespace MainWindow
BitBlt(hbm, hdc, 0, 0, rc.right - rc.left, rc.bottom - rc.top, rc.left, rc.top);
char str[11];
GetWindowTextA(hEdit, str, 10);
DrawTextA(hdc, str, strlen(str), &clientrc, DT_CENTER|DT_SINGLELINE);
DrawTextA(hdc, str, (int)strlen(str), &clientrc, DT_CENTER|DT_SINGLELINE);
return (LRESULT)GetStockObject(NULL_BRUSH);
}
case WM_COMMAND: