Skip to content

Commit 91fb035

Browse files
committed
fix stackoverflow
1 parent b059889 commit 91fb035

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/entities/DFGFactor.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ GenericFunctionNodeData{T}() where T =
5858
function GenericFunctionNodeData(eliminated::Bool,
5959
potentialused::Bool,
6060
edgeIDs::Vector{Int},
61-
fnc,
61+
fnc::T,
6262
multihypo::Vector{<:Real}=Float64[],
6363
certainhypo::Vector{Int}=Int[],
6464
nullhypo::Real=0,
65-
solveInP::Int=0)
66-
return GenericFunctionNodeData(eliminated, potentialused, edgeIDs, fnc, multihypo, certainhypo, nullhypo, solveInP)
65+
solveInP::Int=0) where T
66+
return GenericFunctionNodeData{T}(eliminated, potentialused, edgeIDs, fnc, multihypo, certainhypo, nullhypo, solveInP)
6767
end
6868

6969

0 commit comments

Comments
 (0)