diff --git a/src/hb-ot-layout-gsub-private.h b/src/hb-ot-layout-gsub-private.h index 968dd4a4d..b607ca537 100644 --- a/src/hb-ot-layout-gsub-private.h +++ b/src/hb-ot-layout-gsub-private.h @@ -808,7 +808,7 @@ struct SubstLookup : Lookup { else buffer->in_pos--; - } while (buffer->in_pos); + } while ((int) buffer->in_pos >= 0); } return ret;