mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-20 13:23:13 -07:00
Removing call to stripzeroesnum if no number exists. (#877)
This commit is contained in:
parent
3c6b5a808e
commit
be4e437f4d
1 changed files with 4 additions and 2 deletions
|
@ -741,8 +741,10 @@ PNUMBER StringToNumber(wstring_view numberString, uint32_t radix, int32_t precis
|
||||||
destroynum(pnumret);
|
destroynum(pnumret);
|
||||||
pnumret = nullptr;
|
pnumret = nullptr;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
stripzeroesnum(pnumret, precision);
|
stripzeroesnum(pnumret, precision);
|
||||||
|
}
|
||||||
|
|
||||||
return pnumret;
|
return pnumret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue