apply warning fixes from r1447

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4514 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman
2009-11-08 02:28:06 +00:00
parent 1c4c31f37a
commit 1b7303ea0a
4 changed files with 4 additions and 7 deletions

View File

@ -178,7 +178,7 @@ bool ReadAnnotatedAssembly(const char *filename)
// Scan for function starts
if (!memcmp(line, "void", 4)) {
char temp[256];
for (int i = 6; i < len; i++) {
for (size_t i = 6; i < len; i++) {
if (line[i] == '(') {
// Yep, got one.
memcpy(temp, line + 5, i - 5);
@ -197,7 +197,7 @@ bool ReadAnnotatedAssembly(const char *filename)
}
// Scan for braces
for (int i = 0; i < (int)len; i++) {
for (size_t i = 0; i < len; i++) {
if (line[i] == '{')
brace_count++;
if (line[i] == '}')