We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73ac10b commit e4342dcCopy full SHA for e4342dc
codec/reader.go
@@ -244,19 +244,19 @@ func (z *ioDecReader) readx(n uint) (bs []byte) {
244
} else {
245
bs = make([]byte, n)
246
}
247
- _, err := readFull(z.br, bs)
+ nn, err := readFull(z.br, bs)
248
+ z.n += nn
249
halt.onerror(err)
- z.n += uint(len(bs))
250
return
251
252
253
func (z *ioDecReader) readb(bs []byte) {
254
if len(bs) == 0 {
255
256
257
258
259
260
261
262
func (z *ioDecReader) readn1() (b uint8) {
0 commit comments