projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5669a6c
)
Fix UTF-8 backward iteration
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 13 Nov 2012 23:12:06 +0000
(15:12 -0800)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 13 Nov 2012 23:12:06 +0000
(15:12 -0800)
Ouch!
src/hb-utf-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-utf-private.hh
b/src/hb-utf-private.hh
index
8cde827
..
ae36ef8
100644
(file)
--- a/
src/hb-utf-private.hh
+++ b/
src/hb-utf-private.hh
@@
-77,8
+77,8
@@
hb_utf_prev (const uint8_t *text,
const uint8_t *start,
hb_codepoint_t *unicode)
{
- const uint8_t *end = text;
- while (start < text && (*
--
text & 0xc0) == 0x80 && end - text < 4)
+ const uint8_t *end = text
--
;
+ while (start < text && (*text & 0xc0) == 0x80 && end - text < 4)
text--;
hb_codepoint_t c = *text, mask;