From 9b874841274ef0262872c53f9b9eb5d2bc054c8f Mon Sep 17 00:00:00 2001 From: "Dr.Smile" Date: Mon, 18 Sep 2017 00:56:00 +0300 Subject: rasterizer: fix warning While int8_t work in practice, uint8_t is more correct type here. --- libass/ass_rasterizer_c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libass/ass_rasterizer_c.c b/libass/ass_rasterizer_c.c index 99cea6f..7e33231 100644 --- a/libass/ass_rasterizer_c.c +++ b/libass/ass_rasterizer_c.c @@ -27,7 +27,7 @@ void ass_fill_solid_tile16_c(uint8_t *buf, ptrdiff_t stride, int set) { - int8_t value = set ? 255 : 0; + uint8_t value = set ? 255 : 0; for (int y = 0; y < 16; y++) { for (int x = 0; x < 16; x++) buf[x] = value; @@ -37,7 +37,7 @@ void ass_fill_solid_tile16_c(uint8_t *buf, ptrdiff_t stride, int set) void ass_fill_solid_tile32_c(uint8_t *buf, ptrdiff_t stride, int set) { - int8_t value = set ? 255 : 0; + uint8_t value = set ? 255 : 0; for (int y = 0; y < 32; y++) { for (int x = 0; x < 32; x++) buf[x] = value; -- cgit v1.2.3