Skip to content

Commit b1b8a00

Browse files
committed
use setval! on the metadata directly instead of on the varinfo
1 parent 73d120f commit b1b8a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/varinfo.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ function _inner_transform!(md::Metadata, vi::VarInfo, vn::VarName, f)
13361336
setrange!(md, vn, start:(start + length(yvec) - 1))
13371337
# Set the new value.
13381338
# TODO: should replace this with a `setval!` for `Metadata`.
1339-
setval!(vi, yvec, vn)
1339+
setval!(md, yvec, vn)
13401340
acclogp!!(vi, -logjac)
13411341
return vi
13421342
end

0 commit comments

Comments
 (0)