string(b)[0:n]
instead of the more direct string(b[0:n]).
convert to the more direct form.
R=r
DELTA=5 (0 added, 0 deleted, 5 changed)
OCL=27082
CL=27140
nb++;
}
// BUG return string(b[0:nb]) ?
- return string(b)[0:nb]
+ return string(b[0:nb])
}
// Call Read to accumulate the text of a file
buf[i] = ' ';
i--;
}
- return string(buf)[i+1:nByte];
+ return string(buf[i+1:nByte]);
}
// Fmt_d64 formats an int64 in decimal.
val /= 10;
}
buf[i] = byte(val + '0');
- return string(buf)[i:len(buf)];
+ return string(buf[i:len(buf)]);
}
func Errstr(errno int64) string {
val /= 10;
}
buf[i] = byte(val + '0');
- return string(buf)[i:len(buf)];
+ return string(buf[i:len(buf)]);
}
func Errstr(errno int64) string {