1
0
mirror of https://github.com/golang/go synced 2024-09-29 13:14:28 -06:00

fix type error caused by recent change

R=gri
OCL=13545
CL=13545
This commit is contained in:
Rob Pike 2008-07-29 13:16:42 -07:00
parent fce9118610
commit f095e263c5
2 changed files with 4 additions and 4 deletions

View File

@ -336,11 +336,11 @@ func str(val int64) string { // do it here rather than with fmt to avoid depend
var buf [32]byte; // big enough for int64
i := len(buf)-1;
for val >= 10 {
buf[i] = val%10 + '0';
buf[i] = byte(val%10 + '0');
i--;
val /= 10;
}
buf[i] = val + '0';
buf[i] = byte(val + '0');
return string(buf)[i:len(buf)];
}

View File

@ -410,11 +410,11 @@ func str(val int64) string { // do it here rather than with fmt to avoid depend
var buf [32]byte; // big enough for int64
i := len(buf)-1;
for val >= 10 {
buf[i] = val%10 + '0';
buf[i] = byte(val%10 + '0');
i--;
val /= 10;
}
buf[i] = val + '0';
buf[i] = byte(val + '0');
return string(buf)[i:len(buf)];
}