[cpal] port to dagger (#1887)

This commit is contained in:
Ebrahim Byagowi 2019-07-30 17:31:34 +04:30 committed by GitHub
parent d67201da5a
commit 8014ce198a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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;
} }