Skip to content

Commit 318df9d

Browse files
oxidasePatrick Niklaus
authored andcommitted
Adjust ebn_weight assertion to new node weights
1 parent cacb162 commit 318df9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extractor/edge_based_graph_factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ EdgeBasedGraphFactory::GenerateEdgeExpandedNodes(const WayRestrictionMap &way_re
403403
segregated_edges.count(eid) > 0;
404404

405405
const auto ebn_weight = m_edge_based_node_weights[nbe_to_ebn_mapping[eid]];
406-
BOOST_ASSERT(ebn_weight == INVALID_EDGE_WEIGHT || ebn_weight == edge_data.weight);
406+
BOOST_ASSERT((ebn_weight & 0x7fffffff) == edge_data.weight);
407407
m_edge_based_node_weights.push_back(ebn_weight);
408408
m_edge_based_node_durations.push_back(
409409
m_edge_based_node_durations[nbe_to_ebn_mapping[eid]]);

0 commit comments

Comments
 (0)