提交 4d3c8f96 编写于 作者: B Behdad Esfahbod

[uniscribe] More warnings

上级 6a5d2b21
...@@ -961,13 +961,13 @@ retry: ...@@ -961,13 +961,13 @@ retry:
/* Calculate visual-clusters. That's what we ship. */ /* Calculate visual-clusters. That's what we ship. */
for (unsigned int i = 0; i < glyphs_len; i++) for (unsigned int i = 0; i < glyphs_len; i++)
vis_clusters[i] = -1; vis_clusters[i] = (uint32_t) -1;
for (unsigned int i = 0; i < buffer->len; i++) { for (unsigned int i = 0; i < buffer->len; i++) {
uint32_t *p = &vis_clusters[log_clusters[buffer->info[i].utf16_index()]]; uint32_t *p = &vis_clusters[log_clusters[buffer->info[i].utf16_index()]];
*p = MIN (*p, buffer->info[i].cluster); *p = MIN (*p, buffer->info[i].cluster);
} }
for (unsigned int i = 1; i < glyphs_len; i++) for (unsigned int i = 1; i < glyphs_len; i++)
if (vis_clusters[i] == -1) if (vis_clusters[i] == (uint32_t) -1)
vis_clusters[i] = vis_clusters[i - 1]; vis_clusters[i] = vis_clusters[i - 1];
#undef utf16_index #undef utf16_index
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册