Skip to content

Commit

Permalink
Fix Term construction in gen_expr
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenszhu committed Sep 16, 2024
1 parent c3b0585 commit 1660338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fuzzlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function gen_expr(lvl=5)
n = rand(1:5)
args = [gen_expr(lvl-1) for i in 1:n]

Term{Number}(f, first.(args)), f(last.(args)...)
_Term(Number, f, first.(args)), f(last.(args)...)
else
f = rand((-,/))
l = gen_expr(lvl-1)
Expand All @@ -217,7 +217,7 @@ function gen_expr(lvl=5)
end
args = [l, r]

Term{Number}(f, first.(args)), f(last.(args)...)
_Term(Number, f, first.(args)), f(last.(args)...)
end
end

Expand Down

0 comments on commit 1660338

Please sign in to comment.