Commit f095e263 authored by Rob Pike's avatar Rob Pike

fix type error caused by recent change

R=gri
OCL=13545
CL=13545
parent fce91186
......@@ -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)];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment