[GSUB] Fix reverse lookup loop like we did in the old code before
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 16 Apr 2009 16:30:51 +0000 (12:30 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 2 Nov 2009 19:40:06 +0000 (14:40 -0500)
src/hb-ot-layout-gsub-private.h

index 968dd4a..b607ca5 100644 (file)
@@ -808,7 +808,7 @@ struct SubstLookup : Lookup {
          else
            buffer->in_pos--;
 
-       } while (buffer->in_pos);
+       } while ((int) buffer->in_pos >= 0);
     }
 
     return ret;