Skip to content

Commit

Permalink
fix the size of the buffer used when scanning decimal numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
e-ivaldi committed Jun 17, 2020
1 parent 64cb151 commit 345deda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private char[] allocate(char[] buffer) {
}

private char[] allocate(char[] buffer, int size) {
char[] newBuffer = new char[Math.max(buffer.length * 2, size)];
char[] newBuffer = new char[buffer.length + size];
System.arraycopy(buffer, 0, newBuffer, 0, buffer.length);
return newBuffer;
}
Expand Down

0 comments on commit 345deda

Please sign in to comment.