diff --git a/rom/exec/debug_internal.c b/rom/exec/debug_internal.c index 39b19cecc1..89c7c73ff6 100644 --- a/rom/exec/debug_internal.c +++ b/rom/exec/debug_internal.c @@ -462,11 +462,10 @@ ULONG GetL(char* string) { ULONG ret = 0; int i; - char digit; for(i = 0; i < 8; i++) { - digit = toupper(string[i]); + char digit = toupper(string[i]); if (!isxdigit(digit)) break; @@ -485,11 +484,10 @@ UWORD GetW(char* string) { UWORD ret = 0; int i; - char digit; for(i = 0; i < 4; i++) { - digit = toupper(string[i]); + char digit = toupper(string[i]); if (!isxdigit(digit)) break; @@ -508,11 +506,10 @@ UBYTE GetB(char* string) { UBYTE ret = 0; int i; - char digit; - + for(i = 0; i < 2; i++) { - digit = toupper(string[i]); + char digit = toupper(string[i]); if (!isxdigit(digit)) break;