[repacker] fix GSTAR sanitize.
This commit is contained in:
parent
2f63f0c861
commit
514fcea0aa
|
@ -200,8 +200,8 @@ struct GSTAR : public OT::GSUBGPOS
|
||||||
bool sanitize (const graph_t::vertex_t& vertex)
|
bool sanitize (const graph_t::vertex_t& vertex)
|
||||||
{
|
{
|
||||||
int64_t len = vertex.obj.tail - vertex.obj.head;
|
int64_t len = vertex.obj.tail - vertex.obj.head;
|
||||||
// Only need access to fields in min_size
|
if (len < OT::GSUBGPOS::min_size) return false;
|
||||||
return len >= OT::GSUBGPOS::min_size;
|
return len >= get_size ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void find_lookups (graph_t& graph,
|
void find_lookups (graph_t& graph,
|
||||||
|
|
Loading…
Reference in New Issue