mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 10:29:45 +01: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:
parent
84ac4a40c1
commit
623f4edc6e
1 changed files with 2 additions and 2 deletions
|
@ -290,14 +290,14 @@ bool is_positive_num(const std::string& str, bool hex)
|
|||
{
|
||||
if (hex)
|
||||
{
|
||||
if (!VVV_isxdigit(static_cast<unsigned char>(str[i])))
|
||||
if (!VVV_isxdigit(str[i]))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!SDL_isdigit(static_cast<unsigned char>(str[i])))
|
||||
if (!SDL_isdigit(str[i]))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue