Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo
  • Loading branch information
xerial committed Jan 4, 2016
commit 2cb2fcc3f63d4b83ace398dccb9e421a5ac4a570
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ private void flushBuffer()
position = 0;
}

private void ensureCapacity(int mimimumSize)
private void ensureCapacity(int minimumSize)
throws IOException
{
if (buffer == null) {
buffer = out.next(mimimumSize);
buffer = out.next(minimumSize);
}
else if (position + mimimumSize >= buffer.size()) {
else if (position + minimumSize >= buffer.size()) {
flushBuffer();
buffer = out.next(mimimumSize);
buffer = out.next(minimumSize);
}
}

Expand Down