aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agi/lzw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/lzw.cpp b/engines/agi/lzw.cpp
index aa926b0158..7386f379e7 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 = (unsigned char *)((long)out + (long)len);
+ end = (uint8 *)((uint8)out + (uint8)len);
lzwold = inputCode(&in); /* Read in the first code */
c = lzwold;