Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/libImaging/FliDecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

#define I16(ptr) ((ptr)[0] + ((int)(ptr)[1] << 8))

#define I32(ptr) \
((ptr)[0] + ((INT32)(ptr)[1] << 8) + ((INT32)(ptr)[2] << 16) + \
((INT32)(ptr)[3] << 24))
#define I32(ptr) \
((ptr)[0] + ((unsigned long)(ptr)[1] << 8) + ((unsigned long)(ptr)[2] << 16) + \
((unsigned long)(ptr)[3] << 24))

#define ERR_IF_DATA_OOB(offset) \
if ((data + (offset)) > ptr + bytes) { \
Expand All @@ -31,8 +31,8 @@
int
ImagingFliDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t bytes) {
UINT8 *ptr;
int framesize;
int c, chunks, advance;
unsigned long framesize, advance;
int c, chunks;
int l, lines;
int i, j, x = 0, y, ymax;

Expand Down
Loading