comment
This commit is contained in:
parent
d5c2167efc
commit
842b8060c8
1 changed files with 1 additions and 2 deletions
3
pila.c
3
pila.c
|
@ -463,8 +463,7 @@ read_number(Str ns, u64 *res)
|
||||||
n = n * 10 + cv;
|
n = n * 10 + cv;
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
|
if (p < pend) /* trailling characters, invalid number */
|
||||||
if (p < pend)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
*res = n;
|
*res = n;
|
||||||
|
|
Loading…
Add table
Reference in a new issue