We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eed56a4 commit 00d1eb2Copy full SHA for 00d1eb2
src/rtext.c
@@ -1471,13 +1471,14 @@ float TextToFloat(const char *text)
1471
text++;
1472
}
1473
1474
- for (int i = 0; ((text[i] >= '0') && (text[i] <= '9')); i++) value = value*10.0f + (float)(text[i] - '0');
+ int i = 0;
1475
+ for (; ((text[i] >= '0') && (text[i] <= '9')); i++) value = value*10.0f + (float)(text[i] - '0');
1476
1477
if (text[i++] != '.') value *= sign;
1478
else
1479
{
1480
float divisor = 10.0f;
- for (int i = 0; ((text[i] >= '0') && (text[i] <= '9')); i++)
1481
+ for (; ((text[i] >= '0') && (text[i] <= '9')); i++)
1482
1483
value += ((float)(text[i] - '0'))/divisor;
1484
divisor = divisor*10.0f;
0 commit comments