Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
julienschmidt committed Jun 2, 2013
1 parent 2aeea12 commit 72688c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ func (b *buffer) fill(need int) (err error) {
b.buf = append(b.buf, 0)
b.buf = b.buf[:cap(b.buf)]

if cap(b.buf) < size {
if cap(b.buf) < need {
continue
}
return
break
}
}

Expand Down

0 comments on commit 72688c5

Please sign in to comment.