diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2019-01-18 13:45:33 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2019-01-18 14:20:45 -0500 |
commit | c2ea7a9da463c567d321233b23813c59762841bb (patch) | |
tree | e153c3cf92a451efdcdde5c557d3d2b643bba903 /src/hb-directwrite.cc | |
parent | 9714d3ec5c45b2fe460fa6b21bdb3487c62029d3 (diff) | |
download | harfbuzz-c2ea7a9da463c567d321233b23813c59762841bb.tar.gz |
[directwrite] More fix
Diffstat (limited to 'src/hb-directwrite.cc')
-rw-r--r-- | src/hb-directwrite.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hb-directwrite.cc b/src/hb-directwrite.cc index 2739b882..d691d40b 100644 --- a/src/hb-directwrite.cc +++ b/src/hb-directwrite.cc @@ -769,7 +769,7 @@ retry_getglyphs: /* Calculate visual-clusters. That's what we ship. */ for (unsigned int i = 0; i < glyphCount; i++) - vis_clusters[i] = -1; + vis_clusters[i] = (uint32_t) -1; for (unsigned int i = 0; i < buffer->len; i++) { uint32_t *p = @@ -777,7 +777,7 @@ retry_getglyphs: *p = MIN (*p, buffer->info[i].cluster); } for (unsigned int i = 1; i < glyphCount; i++) - if (vis_clusters[i] == -1) + if (vis_clusters[i] == (uint32_t) -1) vis_clusters[i] = vis_clusters[i - 1]; #undef utf16_index |