mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Give static storage duration to radix in ss_toi()
Since the value is a const value that reads from an integer literal, it should be static so we read it directly from storage instead of copying it.
This commit is contained in:
@@ -40,7 +40,7 @@ int ss_toi(const std::string& str)
|
||||
{
|
||||
int retval = 0;
|
||||
bool negative = false;
|
||||
const int radix = 10;
|
||||
static const int radix = 10;
|
||||
|
||||
for (size_t i = 0; i < str.size(); ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user