summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr.Smile <vabnick@gmail.com>2017-09-18 00:56:00 +0300
committerDr.Smile <vabnick@gmail.com>2017-09-18 00:56:00 +0300
commit9b874841274ef0262872c53f9b9eb5d2bc054c8f (patch)
treebefc8cbbb46393f9d9b18a5c5cc2a8c7e32dbad1
parentad6510b9c78f5c79f7492b608912dc5281e15e47 (diff)
downloadlibass-9b874841274ef0262872c53f9b9eb5d2bc054c8f.tar.bz2
libass-9b874841274ef0262872c53f9b9eb5d2bc054c8f.tar.xz
rasterizer: fix warning
While int8_t work in practice, uint8_t is more correct type here.
-rw-r--r--libass/ass_rasterizer_c.c4
1 files 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;