Use segregated flag as a bit in EdgeBasedNode.
This commit is contained in:
parent
90e361c3dc
commit
111030864c
@ -12,10 +12,12 @@ struct EdgeBasedNode
|
|||||||
{
|
{
|
||||||
GeometryID geometry_id;
|
GeometryID geometry_id;
|
||||||
ComponentID component_id;
|
ComponentID component_id;
|
||||||
AnnotationID annotation_id;
|
AnnotationID annotation_id : 31;
|
||||||
bool segregated;
|
bool segregated : 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static_assert(sizeof(EdgeBasedNode) == 3 * 4, "Should be 3 * sizeof(uint32_t)");
|
||||||
|
|
||||||
} // namespace extractor
|
} // namespace extractor
|
||||||
} // namespace osrm
|
} // namespace osrm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user