mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +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:
parent
623f4edc6e
commit
62808ca97a
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ bool is_number(const char* str)
|
||||||
{
|
{
|
||||||
for (int i = 0; str[i] != '\0'; i++)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue