mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Misc warning fixes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3583 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -466,7 +466,7 @@ std::string TabsToSpaces(int tab_size, const std::string &in)
|
||||
std::string out;
|
||||
int len = 0;
|
||||
// First, compute the size of the new string.
|
||||
for (int i = 0; i < in.size(); i++)
|
||||
for (unsigned i = 0; i < in.size(); i++)
|
||||
{
|
||||
if (in[i] == '\t')
|
||||
len += tab_size;
|
||||
@ -475,7 +475,7 @@ std::string TabsToSpaces(int tab_size, const std::string &in)
|
||||
}
|
||||
out.resize(len);
|
||||
int out_ctr = 0;
|
||||
for (int i = 0; i < in.size(); i++)
|
||||
for (unsigned i = 0; i < in.size(); i++)
|
||||
{
|
||||
if (in[i] == '\t')
|
||||
{
|
||||
@ -488,4 +488,4 @@ std::string TabsToSpaces(int tab_size, const std::string &in)
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user