mirror of
https://github.com/golang/go
synced 2024-11-26 07:57:57 -07:00
fix type error caused by recent change
R=gri OCL=13545 CL=13545
This commit is contained in:
parent
fce9118610
commit
f095e263c5
@ -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)];
|
||||
}
|
||||
|
||||
|
@ -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)];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user