Skip to content

Commit

Permalink
fixed calls to to_linked_internal_transform
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde authored Nov 27, 2024
1 parent 48921d3 commit 361c45e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context_implementations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function assume(
else
r = init(rng, dist, sampler)
if istrans(vi)
f = to_linked_internal_transform(vi, dist)
f = to_linked_internal_transform(vi, vn, dist)

Check warning on line 260 in src/context_implementations.jl

View check run for this annotation

Codecov / codecov/patch

src/context_implementations.jl#L260

Added line #L260 was not covered by tests
push!!(vi, vn, f(r), dist, sampler)
# By default `push!!` sets the transformed flag to `false`.
settrans!!(vi, true, vn)
Expand Down Expand Up @@ -500,7 +500,7 @@ end
# HACK: These methods are only used in the `get_and_set_val!` methods below.
# FIXME: Remove these.
function _link_broadcast_new(vi, vn, dist, r)
b = to_linked_internal_transform(vi, dist)
b = to_linked_internal_transform(vi, vn, dist)

Check warning on line 503 in src/context_implementations.jl

View check run for this annotation

Codecov / codecov/patch

src/context_implementations.jl#L503

Added line #L503 was not covered by tests
return b(r)
end

Expand Down

0 comments on commit 361c45e

Please sign in to comment.