diff options
-rw-r--r-- | engines/agi/lzw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/lzw.cpp b/engines/agi/lzw.cpp index 7386f379e7..a101ebb9f6 100644 --- a/engines/agi/lzw.cpp +++ b/engines/agi/lzw.cpp @@ -144,7 +144,7 @@ void lzwExpand(uint8 *in, uint8 *out, int32 len) { setBits(START_BITS); /* Starts at 9-bits */ lzwnext = 257; /* Next available code to define */ - end = (uint8 *)((uint8)out + (uint8)len); + end = (uint8 *)(out + (uint32)len); lzwold = inputCode(&in); /* Read in the first code */ c = lzwold; |