Skip to content

Commit

Permalink
fix: ensure right size for preallocated storage
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Dec 12, 2024
1 parent bf1c521 commit 399b86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mutate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function next_generation(
successful_mutation = false
attempts = 0
max_attempts = 10
node_storage = preallocate_expression(member.tree, curmaxsize)
node_storage = preallocate_expression(member.tree, length(member.tree))

#############################################
# Mutations
Expand Down

0 comments on commit 399b86a

Please sign in to comment.