Skip to content

Commit 11c55e9

Browse files
committed
Fix mac ci
1 parent 13be687 commit 11c55e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/nleval.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,14 @@ void NonlinearEvaluator::finalize_graph_instance(size_t graph_index, const Expre
395395
if (graph.has_constraint_output())
396396
{
397397
auto hash = graph.constraint_structure_hash(bodyhash);
398-
constraint_graph_hashes.hashes.emplace_back(hash, (int)graph_index);
398+
constraint_graph_hashes.hashes.push_back(
399+
GraphHash{.hash = hash, .index = (int)graph_index});
399400
}
400401

401402
if (graph.has_objective_output())
402403
{
403404
auto hash = graph.objective_structure_hash(bodyhash);
404-
objective_graph_hashes.hashes.emplace_back(hash, (int)graph_index);
405+
objective_graph_hashes.hashes.push_back(GraphHash{.hash = hash, .index = (int)graph_index});
405406
}
406407
}
407408

0 commit comments

Comments
 (0)