aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-10-09 02:12:24 +0000
committerTravis Howell2006-10-09 02:12:24 +0000
commitaac87e10c25c1fc4999fdd303a2e0b9e30d8d4b8 (patch)
treec6b2a6915cb0611accb68bf00848c2f114be7f5e
parent5e827e1e5dfd1378a2baca5decde7fd61a01bab4 (diff)
downloadscummvm-rg350-aac87e10c25c1fc4999fdd303a2e0b9e30d8d4b8.tar.gz
scummvm-rg350-aac87e10c25c1fc4999fdd303a2e0b9e30d8d4b8.tar.bz2
scummvm-rg350-aac87e10c25c1fc4999fdd303a2e0b9e30d8d4b8.zip
Minor cleanup
svn-id: r24245
-rw-r--r--engines/agos/res_ami.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agos/res_ami.cpp b/engines/agos/res_ami.cpp
index 9074bbccbe..e3a987d4e7 100644
--- a/engines/agos/res_ami.cpp
+++ b/engines/agos/res_ami.cpp
@@ -83,8 +83,8 @@ static void convertcompressedclip(uint16 height, uint16 width) {
uint16 length, i, j, k, word1, word2, word3, word4, cliplength;
byte outbyte, outbyte1, x, y;
char n;
- uncbuffer = (byte *)malloc((long)(height * width / 2));
- uncbfrout = (byte *)malloc((long)(height * width / 2));
+ uncbuffer = (byte *)malloc((int32)(height * width / 2));
+ uncbfrout = (byte *)malloc((int32)(height * width / 2));
length = width / 16;
length *= height;
plane0 = READ_BE_UINT32(clipptr) + clipptr; clipptr += 4; plane0 += 4;
@@ -260,11 +260,11 @@ void AGOSEngine::convertAmiga(byte *srcBuf, int32 fileSize) {
debug(0, "convertAmiga: fizeSize %d", fileSize);
- buffer = (byte *)malloc((long)fileSize);
+ buffer = (byte *)malloc((int32)fileSize);
memcpy(buffer, srcBuf, fileSize);
bufptr = buffer;
- bufferout = (byte *)malloc((long)(fileSize * 2));
+ bufferout = (byte *)malloc((int32)(fileSize * 2));
bufptr = buffer;
bufptrout = bufferout;
clipnumber = 0;