Skip to content

Commit

Permalink
fix: Fast Isochrones negative memory allocation error (#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaeu authored Dec 15, 2023
2 parents 2ee3850 + 71d89e4 commit d9c61f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public boolean loadExisting() {
public void init() {
borderNodes.create(1000);
getNumBorderNodes();
borderNodes.ensureCapacity((long) borderNodeCount * byteCount + necessaryCapacity * byteCount + borderNodeCount * 4);
borderNodes.ensureCapacity((long) borderNodeCount * byteCount + (long) necessaryCapacity * byteCount + borderNodeCount * 4);
borderNodes.setHeader(0, borderNodeCount);
borderNodeIndexOffset = borderNodeCount * byteCount;
borderNodePointer = borderNodeIndexOffset;
Expand Down

0 comments on commit d9c61f6

Please sign in to comment.