1
0
mirror of https://github.com/deadw00d/AROS.git synced 2025-11-23 20:21:25 +00:00

reduce the scope of all instances of digit.

This commit is contained in:
Kalamatee
2025-09-27 17:02:28 +01:00
committed by deadwood
parent 0006f73296
commit fd1d9154d4

View File

@ -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;