Slightly optimize UTF-8 parsing
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 25 Sep 2012 16:30:16 +0000 (12:30 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 25 Sep 2012 16:30:16 +0000 (12:30 -0400)
src/hb-utf-private.hh

index f89aa23..a77139f 100644 (file)
@@ -44,8 +44,8 @@ hb_utf_next (const uint8_t *text,
             const uint8_t *end,
             hb_codepoint_t *unicode)
 {
-  uint8_t c = *text;
-  unsigned int mask, len;
+  hb_codepoint_t c = *text, mask;
+  unsigned int len;
 
   /* TODO check for overlong sequences? */