32-bit warning fixes in the debugger/win UI.

This commit is contained in:
Unknown W. Brackets 2013-09-23 23:44:58 -07:00
parent f829028ec7
commit a528f797b1
2 changed files with 6 additions and 6 deletions

View File

@ -124,7 +124,7 @@ void CtrlDisAsmView::scanFunctions()
}
std::sort(func.lines.begin(),func.lines.end(),compareBranchLines);
for (int i = 0; i < func.lines.size(); i++)
for (size_t i = 0; i < func.lines.size(); i++)
{
for (int l = 0; l < NUM_LANES; l++)
{
@ -184,7 +184,7 @@ void CtrlDisAsmView::scanFunctions()
lanes[i].used = false;
std::sort(strayLines.begin(),strayLines.end(),compareBranchLines);
for (int i = 0; i < strayLines.size(); i++)
for (size_t i = 0; i < strayLines.size(); i++)
{
for (int l = 0; l < NUM_LANES; l++)
{
@ -666,19 +666,19 @@ void CtrlDisAsmView::onPaint(WPARAM wParam, LPARAM lParam)
}
SelectObject(hdc,condPen);
for (int i = 0; i < visibleFunctionAddresses.size(); i++)
for (size_t i = 0; i < visibleFunctionAddresses.size(); i++)
{
auto it = functions.find(visibleFunctionAddresses[i]);
if (it == functions.end()) continue;
DisassemblyFunction& func = it->second;
for (int l = 0; l < func.lines.size(); l++)
for (size_t l = 0; l < func.lines.size(); l++)
{
drawBranchLine(hdc,func.lines[l]);
}
}
for (int i = 0; i < strayLines.size(); i++)
for (size_t i = 0; i < strayLines.size(); i++)
{
drawBranchLine(hdc,strayLines[i]);
}

View File

@ -101,7 +101,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
// Really should find a way to do this in XP too :/
if (0 != GetLocaleInfo(LOCALE_NAME_USER_DEFAULT, LOCALE_SNAME, lcCountry, 256)) {
langRegion = ConvertWStringToUTF8(lcCountry);
for (int i = 0; i < langRegion.size(); i++) {
for (size_t i = 0; i < langRegion.size(); i++) {
if (langRegion[i] == '-')
langRegion[i] = '_';
}