Fix warning
../../src/hb-ot-layout-gsubgpos-private.hh:391:18: warning: missed loop optimization, the loop counter may overflow [-Wunsafe-loop-optimizations]
This commit is contained in:
parent
058708a665
commit
18a06f8a66
|
@ -388,7 +388,7 @@ struct hb_ot_apply_context_t :
|
||||||
inline bool prev (void)
|
inline bool prev (void)
|
||||||
{
|
{
|
||||||
assert (num_items > 0);
|
assert (num_items > 0);
|
||||||
while (idx >= num_items)
|
while (idx > num_items - 1)
|
||||||
{
|
{
|
||||||
idx--;
|
idx--;
|
||||||
const hb_glyph_info_t &info = c->buffer->out_info[idx];
|
const hb_glyph_info_t &info = c->buffer->out_info[idx];
|
||||||
|
|
Loading…
Reference in New Issue