1
0
mirror of https://github.com/golang/go synced 2024-11-22 12:24:47 -07:00

fix typo causing infinite recursion

R=rsc
OCL=17398
CL=17398
This commit is contained in:
Rob Pike 2008-10-17 17:59:27 -07:00
parent 5fe4cd83a8
commit 35eebcacc8

View File

@ -163,7 +163,7 @@ export func atol(s string) (i int64, ok bool) {
}
export func atoi(s string) (i int, ok bool) {
ii, okok := atoi(s);
ii, okok := atol(s);
i = int32(ii);
return i, okok
}