From b3522f3596454829f5b42cf5f4e348628bd2af7c Mon Sep 17 00:00:00 2001 From: Angus Lees Date: Mon, 8 May 2006 16:11:59 +0000 Subject: [PATCH] correct signedness of unused palette size parameter.. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@426 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 41ebcb66d..44ff66eab 100644 --- a/src/main.c +++ b/src/main.c @@ -267,7 +267,7 @@ int main(int argc, char *argv[]) SDWORD introVideoControl = 3; int loopStatus = 0; iColour* psPaletteBuffer; - SDWORD pSize; + UDWORD pSize; /*** Initialize the debug subsystem ***/ /* Debug stuff for .net, don't delete :) */ @@ -378,7 +378,7 @@ init://jump here from the end if re_initialising DBERROR(("Out of memory")); return -1; } - if (!loadFileToBuffer("palette.bin", (char*)psPaletteBuffer, (256 * sizeof(iColour)+1),(UDWORD*)&pSize)) + if (!loadFileToBuffer("palette.bin", (char*)psPaletteBuffer, (256 * sizeof(iColour)+1),&pSize)) { DBERROR(("Couldn't load palette data")); return -1;