From ff24d1081af08a887895975285d7e38f5d07bc37 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 11 May 2012 17:07:08 +0200 Subject: [PATCH] [Indic] Don't use syllable serial value 0 --- src/hb-ot-shape-complex-indic-machine.rl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-shape-complex-indic-machine.rl b/src/hb-ot-shape-complex-indic-machine.rl index ddecfcc..bf77b02 100644 --- a/src/hb-ot-shape-complex-indic-machine.rl +++ b/src/hb-ot-shape-complex-indic-machine.rl @@ -82,6 +82,7 @@ main := |* PASTE (initial_reordering_, func) (map, buffer, mask_array, last, p+1); \ last = p+1; \ syllable_serial++; \ + if (unlikely (!syllable_serial)) syllable_serial++; \ } HB_STMT_END static void @@ -99,7 +100,7 @@ find_syllables (const hb_ot_map_t *map, hb_buffer_t *buffer, hb_mask_t *mask_arr pe = eof = buffer->len; unsigned int last = 0; - uint8_t syllable_serial = 0; + uint8_t syllable_serial = 1; %%{ write exec; }%% -- 2.7.4