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:
d67201d
)
[cpal] port to dagger (#1887)
author
Ebrahim Byagowi
<ebrahim@gnu.org>
Tue, 30 Jul 2019 13:01:34 +0000
(17:31 +0430)
committer
GitHub
<noreply@github.com>
Tue, 30 Jul 2019 13:01:34 +0000
(17:31 +0430)
src/hb-ot-color-cpal-table.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-color-cpal-table.hh
b/src/hb-ot-color-cpal-table.hh
index
9ec2957
..
2d2fcf8
100644
(file)
--- a/
src/hb-ot-color-cpal-table.hh
+++ b/
src/hb-ot-color-cpal-table.hh
@@
-146,8
+146,9
@@
struct CPAL
/* 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);
*color_count = count;
- for (unsigned int i = 0; i < count; i++)
- colors[i] = segment_colors[i]; /* Bound-checked read. */
+ + segment_colors
+ | hb_sink (hb_array (colors, count))
+ ;
}
return numColors;
}