Skip to content

Commit b8bbb24

Browse files
committed
Add convert_to_tuples to ensure correct conversion
1 parent ecf6d6c commit b8bbb24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/valuegraph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ end
148148
function create_vertexvals(n, V_VALS::Type{<:AbstractTuple}, f::Function)
149149
vertexvals = Tuple( Vector{T}(undef, n) for T in V_VALS.types )
150150
for v in 1:n
151-
t = f(v)
151+
t = convert_to_tuple(V_VALS, f(v))
152152
for i in 1:length(V_VALS.types)
153153
vertexvals[i][v] = t[i]
154154
end

0 commit comments

Comments
 (0)