1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-05 02:39:41 +01:00

Remove unnecessary static_cast in is_number()

Just like is_positive_num(), the implicit conversion here is completely
okay, and adding an explicit cast here introduces noise.
This commit is contained in:
Misa 2021-02-11 17:08:50 -08:00 committed by Ethan Lee
parent 623f4edc6e
commit 62808ca97a

View file

@ -269,7 +269,7 @@ bool is_number(const char* str)
{
for (int i = 0; str[i] != '\0'; i++)
{
if (!SDL_isdigit(static_cast<unsigned char>(str[i])) && (i != 0 || str[0] != '-'))
if (!SDL_isdigit(str[i]) && (i != 0 || str[0] != '-'))
{
return false;
}