Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ViggoC committed Sep 12, 2024
1 parent 98e183d commit 45f89bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ protected final void handleSafe(int index, int dataLength) {
// in the viewBuffer and allocate a new buffer which has 16 byte alignment for adding new
// values.
long writePosition = (long) index * ELEMENT_SIZE;
if (viewBuffer.capacity() <= writePosition || viewBuffer.capacity() <= targetCapacity) {
if (viewBuffer.capacity() <= writePosition || viewBuffer.capacity() < targetCapacity) {
/*
* Everytime we want to increase the capacity of the viewBuffer, we need to make sure that the new capacity
* meets 16 byte alignment.
Expand Down

0 comments on commit 45f89bf

Please sign in to comment.