From 0f19c982644043abae6fd2ae0bb72717485d68ac Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 23 Jan 2017 11:21:04 +0000 Subject: [PATCH] SW: Fix signedness of buffers related to makepalookup. git-svn-id: https://svn.eduke32.com/eduke32@6041 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/sw/src/anim.c | 4 ++-- polymer/eduke32/source/sw/src/colormap.c | 2 +- polymer/eduke32/source/sw/src/game.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/polymer/eduke32/source/sw/src/anim.c b/polymer/eduke32/source/sw/src/anim.c index decfd6c59..ddfe945d1 100644 --- a/polymer/eduke32/source/sw/src/anim.c +++ b/polymer/eduke32/source/sw/src/anim.c @@ -265,8 +265,8 @@ playanm(short anim_num) int i, j, k, length = 0, numframes = 0; int32_t handle = -1; unsigned char ANIMvesapal[4*256]; - unsigned char tempbuf[256]; - unsigned char *palook_bak = palookup[0]; + char tempbuf[256]; + char *palook_bak = palookup[0]; UserInput uinfo = { FALSE, FALSE, dir_None }; ANIMnum = anim_num; diff --git a/polymer/eduke32/source/sw/src/colormap.c b/polymer/eduke32/source/sw/src/colormap.c index 122037bd1..d549fdb86 100644 --- a/polymer/eduke32/source/sw/src/colormap.c +++ b/polymer/eduke32/source/sw/src/colormap.c @@ -30,7 +30,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "game.h" short f_c = 3; -static unsigned char tempbuf[256]; +static char tempbuf[256]; unsigned char DefaultPalette[256 * 32]; #if 1 void diff --git a/polymer/eduke32/source/sw/src/game.c b/polymer/eduke32/source/sw/src/game.c index 350ccb1c5..009196ea4 100644 --- a/polymer/eduke32/source/sw/src/game.c +++ b/polymer/eduke32/source/sw/src/game.c @@ -1704,8 +1704,8 @@ LogoLevel(void) int fin; unsigned char backup_pal[256*3]; unsigned char pal[PAL_SIZE]; - unsigned char tempbuf[256]; - unsigned char *palook_bak = palookup[0]; + char tempbuf[256]; + char *palook_bak = palookup[0]; UserInput uinfo = { FALSE, FALSE, dir_None }; int i; @@ -1977,8 +1977,8 @@ TitleLevel(void) int fin; unsigned char backup_pal[256*3]; unsigned char pal[PAL_SIZE]; - unsigned char tempbuf[256]; - unsigned char *palook_bak = palookup[0]; + char tempbuf[256]; + char *palook_bak = palookup[0]; int i; for (i = 0; i < 256; i++)