fix: atoll: init ret at 0
This commit is contained in:
parent
8d9ebecadd
commit
84f28095b2
@ -3,7 +3,7 @@
|
||||
long long atoll(const char *str)
|
||||
{
|
||||
const char *start = str;
|
||||
long long ret;
|
||||
long long ret = 0;
|
||||
|
||||
while (*start != '\0') {
|
||||
if (isdigit(*str))
|
||||
|
Loading…
Reference in New Issue
Block a user