Skip to content

Commit

Permalink
#250 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
koral-- committed Jan 25, 2016
1 parent 24bbd5f commit c09f224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/jni/decoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c09f224

Please sign in to comment.