1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-28 23:48:30 +02:00

Remove unnecessary static_casts in is_positive_num()

The implicit conversion is completely okay. Adding an explicit cast here
just creates noise for the reader to filter out.
This commit is contained in:
Misa 2021-02-11 16:26:12 -08:00 committed by Ethan Lee
parent 84ac4a40c1
commit 623f4edc6e

View File

@ -290,14 +290,14 @@ bool is_positive_num(const std::string& str, bool hex)
{ {
if (hex) if (hex)
{ {
if (!VVV_isxdigit(static_cast<unsigned char>(str[i]))) if (!VVV_isxdigit(str[i]))
{ {
return false; return false;
} }
} }
else else
{ {
if (!SDL_isdigit(static_cast<unsigned char>(str[i]))) if (!SDL_isdigit(str[i]))
{ {
return false; return false;
} }