From c09f22408edb1e8c9d38b2cdc34b9f3b46e29714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Wr=C3=B3tniak?= Date: Mon, 25 Jan 2016 17:49:02 +0100 Subject: [PATCH] #250 fixed --- src/main/jni/decoding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/jni/decoding.c b/src/main/jni/decoding.c index cadf48e2..a016dac0 100644 --- a/src/main/jni/decoding.c +++ b/src/main/jni/decoding.c @@ -29,8 +29,8 @@ void DDGifSlurp(GifInfo *info, bool shouldDecode) { } } - uint_fast16_t widthOverflow = gifFilePtr->Image.Width - gifFilePtr->SWidth; - uint_fast16_t heightOverflow = gifFilePtr->Image.Height - gifFilePtr->SHeight; + int_fast32_t widthOverflow = gifFilePtr->Image.Width - gifFilePtr->SWidth; + int_fast32_t heightOverflow = gifFilePtr->Image.Height - gifFilePtr->SHeight; if (widthOverflow > 0 || heightOverflow > 0) { gifFilePtr->SWidth += widthOverflow; gifFilePtr->SHeight += heightOverflow;