mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-03 19:21:13 +00:00
32-bit warning fixes in the debugger/win UI.
This commit is contained in:
parent
f829028ec7
commit
a528f797b1
@ -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]);
|
||||
}
|
||||
|
@ -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] = '_';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user