Skip to content

Commit

Permalink
fix: Correctly allocate enough space for PointerPointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Berstanio committed Jul 2, 2024
1 parent d3b0fc9 commit b68d565
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public PointerPointer(int size, PointerDereferenceSupplier<T> supplier) {
}

public PointerPointer(int size, boolean freeOnGC, boolean guard, PointerDereferenceSupplier<T> supplier) {
super(size, freeOnGC, guard);
super(size * __pointer_size, freeOnGC, guard);
this.supplier = supplier;
}

Expand Down

0 comments on commit b68d565

Please sign in to comment.