mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
Minor cleanup
svn-id: r24245
This commit is contained in:
parent
5e827e1e5d
commit
aac87e10c2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user