Skip to content

Commit

Permalink
[NB] fix shadowing of variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kabdelhak committed Apr 16, 2024
1 parent 66ca15c commit 510cb46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/NBackEnd/Util/NBAdjacency.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ public
else
var := BVariable.getVarPointer(cref);
if BVariable.isRecord(var) then
crefs := List.flatten(list(collectDependenciesCref(BVariable.getVarName(var), map, dep_map, sol_map) for var in BVariable.getRecordChildren(var)));
crefs := List.flatten(list(collectDependenciesCref(BVariable.getVarName(child), map, dep_map, sol_map) for child in BVariable.getRecordChildren(var)));
for cref in crefs loop
Dependency.skip(cref, skips, dep_map);
skips := skips + 1;
Expand Down

0 comments on commit 510cb46

Please sign in to comment.