Skip to content

Commit

Permalink
Merge pull request #421 from georgematheos/patch-2
Browse files Browse the repository at this point in the history
Use `==` rather than `===` to check gf equality
  • Loading branch information
marcoct authored Jul 13, 2021
2 parents 541c731 + 355ef01 commit d79aded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynamic/update.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function traceat(state::GFUpdateState, gen_fn::GenerativeFunction{T,U},
if has_previous
prev_call = get_call(state.prev_trace, key)
prev_subtrace = prev_call.subtrace
get_gen_fn(prev_subtrace) === gen_fn || gen_fn_changed_error(key)
get_gen_fn(prev_subtrace) == gen_fn || gen_fn_changed_error(key)
(subtrace, weight, _, discard) = update(prev_subtrace,
args, map((_) -> UnknownChange(), args), constraints)
else
Expand Down

0 comments on commit d79aded

Please sign in to comment.