Skip to content

Commit 0a92742

Browse files
committed
Undo initialization of array in benchmark
1 parent 00898c2 commit 0a92742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/benchmarks/are_we_fast_yet/storage.effekt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def run(n: Int) = {
3131
def buildTreeDepth(depth: Int) { rand: Random }: Tree = {
3232
count.set(count.get + 1);
3333
if (depth == 1) {
34-
Leaf(array(mod(rand.next, 10) + 1, 0))
34+
Leaf(array::unsafeAllocate(mod(rand.next, 10) + 1))
3535
} else {
3636
Node(
3737
buildTreeDepth(depth - 1){ rand },

0 commit comments

Comments
 (0)