summaryrefslogtreecommitdiffstats
path: root/tools/gifconv/decompress.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gifconv/decompress.c')
-rw-r--r--tools/gifconv/decompress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gifconv/decompress.c b/tools/gifconv/decompress.c
index eafa133..6cc5468 100644
--- a/tools/gifconv/decompress.c
+++ b/tools/gifconv/decompress.c
@@ -235,7 +235,7 @@ Decompress(GIFIMAGEDESC *GifImageDesc, GIFHEAD *GifHead)
FreeCode = FirstFree;
CurCode = OldCode = Code = ReadCode();
FinChar = CurCode & DataMask;
- AddToPixel(FinChar);
+ AddToPixel((BYTE)FinChar);
} else {
/*
* If not a clear code, then must be data: save same as CurCode
@@ -275,7 +275,7 @@ Decompress(GIFIMAGEDESC *GifImageDesc, GIFHEAD *GifHead)
* stacked LIFO, so deal with it that way...
*/
for (i = OutCount - 1; i >= 0; i--)
- AddToPixel(OutCode[i]);
+ AddToPixel((BYTE)OutCode[i]);
OutCount = 0;