Skip to content

Commit

Permalink
issue 85 cc
Browse files Browse the repository at this point in the history
  • Loading branch information
RuedigerMoeller committed Sep 8, 2015
1 parent fba90ca commit 15c34f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/nustaq/offheap/BinaryQueue.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void add(ByteSource source) {
*/
public void add(ByteSource source, long sourceoff, long sourcelen) {
if ( sourcelen >= remaining() ) {
grow(sourcelen);
grow(sourcelen+1); //issue85
add(source,sourceoff,sourcelen);
return;
}
Expand All @@ -73,7 +73,7 @@ public void addInt(int written)
public void add(byte b) {
long remaining = remaining();
if ( 1 >= remaining) {
grow(1);
grow(1+1); // issue85
add(b);
return;
}
Expand Down

0 comments on commit 15c34f2

Please sign in to comment.