mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01: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:
parent
09841ef3a5
commit
5de7c180ea
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ int ss_toi(const std::string& str)
|
||||||
{
|
{
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
bool negative = false;
|
bool negative = false;
|
||||||
const int radix = 10;
|
static const int radix = 10;
|
||||||
|
|
||||||
for (size_t i = 0; i < str.size(); ++i)
|
for (size_t i = 0; i < str.size(); ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue