Don't operate on reference.

This commit is contained in:
Bartosz Taudul 2020-08-18 21:36:09 +02:00
parent 818d20d273
commit 411ca81786

View File

@ -884,8 +884,9 @@ void SysTraceStop()
} }
} }
static uint64_t ReadNumber( const char*& ptr ) static uint64_t ReadNumber( const char*& data )
{ {
auto ptr = data;
assert( *ptr >= '0' && *ptr <= '9' ); assert( *ptr >= '0' && *ptr <= '9' );
uint64_t val = *ptr++ - '0'; uint64_t val = *ptr++ - '0';
for(;;) for(;;)
@ -895,6 +896,7 @@ static uint64_t ReadNumber( const char*& ptr )
val = val * 10 + v; val = val * 10 + v;
ptr++; ptr++;
} }
data = ptr;
return val; return val;
} }