Use segregated flag as a bit in EdgeBasedNode.

This commit is contained in:
vng 2017-11-09 14:14:27 +00:00 committed by Michael Krasnyk
parent 90e361c3dc
commit 111030864c

View File

@ -12,10 +12,12 @@ struct EdgeBasedNode
{
GeometryID geometry_id;
ComponentID component_id;
AnnotationID annotation_id;
bool segregated;
AnnotationID annotation_id : 31;
bool segregated : 1;
};
static_assert(sizeof(EdgeBasedNode) == 3 * 4, "Should be 3 * sizeof(uint32_t)");
} // namespace extractor
} // namespace osrm