Skip to content

Commit 1af8860

Browse files
authored
point store size fix (#265)
1 parent 8ad06c9 commit 1af8860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Java/core/src/main/java/com/amazon/randomcutforest/store/PointStore.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ public PointStore(Builder builder) {
821821

822822
if (builder.refCount == null) {
823823
int size = (int) builder.initialPointStoreSize.orElse(dynamicResizingEnabled ? 1 : builder.capacity);
824-
currentStoreCapacity = size * dimensions;
824+
currentStoreCapacity = size;
825825
indexManager = new IndexManager(size);
826826
startOfFreeSegment = 0;
827827
refCount = new int[size];

0 commit comments

Comments
 (0)