Skip to content

Commit 469c22c

Browse files
committed
use Ref instead
1 parent 745f09a commit 469c22c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/entities/DFGVariable.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ mutable struct DFGVariable <: AbstractDFGVariable
150150
smallData::Dict{String, String}
151151
bigData::Dict{Symbol, AbstractBigDataEntry}
152152
solvable::Int
153-
solveCount::Int
153+
solveCount::Ref{Int}
154154
_internalId::Int64
155155
end
156156

@@ -283,7 +283,7 @@ Related
283283
284284
isSolved, setSolved!
285285
"""
286-
getSolved(v::VariableDataLevel2) = v.solveCount
286+
getSolved(v::VariableDataLevel2) = v.solveCount[]
287287

288288
"""
289289
$SIGNATURES
@@ -305,7 +305,7 @@ Related
305305
306306
getSolved, isSolved
307307
"""
308-
setSolved!(v::VariableDataLevel2, val::Int) = v.solveCount = val
308+
setSolved!(v::VariableDataLevel2, val::Int) = v.solveCount[] = val
309309

310310
"""
311311
$SIGNATURES

0 commit comments

Comments
 (0)