mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
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:
parent
1c4c31f37a
commit
1b7303ea0a
4 changed files with 4 additions and 7 deletions
|
@ -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] == '}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue