mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
cellRtc: remove wrong duplicate pos++
This would have increased pos by one too many.
This commit is contained in:
parent
b81d278aee
commit
f617f69be8
1 changed files with 1 additions and 3 deletions
|
@ -690,11 +690,9 @@ error_code cellRtcParseRfc3339(vm::ptr<CellRtcTick> pUtc, vm::cptr<char> pszDate
|
||||||
u32 pos = 19;
|
u32 pos = 19;
|
||||||
if (pszDateTime[pos] == '.')
|
if (pszDateTime[pos] == '.')
|
||||||
{
|
{
|
||||||
pos++;
|
|
||||||
|
|
||||||
u32 mul = 100000;
|
u32 mul = 100000;
|
||||||
|
|
||||||
for (char c = pszDateTime[pos++]; std::isdigit(c); c = pszDateTime[pos++])
|
for (char c = pszDateTime[++pos]; std::isdigit(c); c = pszDateTime[++pos])
|
||||||
{
|
{
|
||||||
date_time->microsecond += digit(c) * mul;
|
date_time->microsecond += digit(c) * mul;
|
||||||
mul /= 10;
|
mul /= 10;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue