未验证 提交 8014ce19 编写于 作者: E Ebrahim Byagowi 提交者: GitHub

[cpal] port to dagger (#1887)

上级 d67201da
...@@ -146,8 +146,9 @@ struct CPAL ...@@ -146,8 +146,9 @@ struct CPAL
/* Always return numColors colors per palette even if it has out-of-bounds start index. */ /* Always return numColors colors per palette even if it has out-of-bounds start index. */
unsigned int count = hb_min ((unsigned) hb_max ((int) (numColors - start_offset), 0), *color_count); unsigned int count = hb_min ((unsigned) hb_max ((int) (numColors - start_offset), 0), *color_count);
*color_count = count; *color_count = count;
for (unsigned int i = 0; i < count; i++) + segment_colors
colors[i] = segment_colors[i]; /* Bound-checked read. */ | hb_sink (hb_array (colors, count))
;
} }
return numColors; return numColors;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册