[pango/harfbuzz-ng: 4/17] [GSUB] Fix reverse lookup loop like we did in the old code before



commit 3be923835e89c9697d7c0ab24013a353fbafa9ab
Author: Behdad Esfahbod <behdad behdad org>
Date:   Thu Apr 16 12:30:51 2009 -0400

    [GSUB] Fix reverse lookup loop like we did in the old code before
---
 pango/opentype/hb-ot-layout-gsub-private.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pango/opentype/hb-ot-layout-gsub-private.h b/pango/opentype/hb-ot-layout-gsub-private.h
index 968dd4a..b607ca5 100644
--- a/pango/opentype/hb-ot-layout-gsub-private.h
+++ b/pango/opentype/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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]