From d58db919b20ae349e0886158b472e26ad66feadd Mon Sep 17 00:00:00 2001 From: meep-eep Date: Wed, 7 Apr 2004 04:39:17 +0000 Subject: [PATCH] getting rid of some warnings git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1354 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/sound/decoders/mikmod/virtch.c | 5 +++-- sc2/src/sc2code/libs/sound/decoders/mikmod/virtch2.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sc2/src/sc2code/libs/sound/decoders/mikmod/virtch.c b/sc2/src/sc2code/libs/sound/decoders/mikmod/virtch.c index 0f2fae83b..63b67b962 100644 --- a/sc2/src/sc2code/libs/sound/decoders/mikmod/virtch.c +++ b/sc2/src/sc2code/libs/sound/decoders/mikmod/virtch.c @@ -96,7 +96,8 @@ typedef struct VINFO { static SWORD **Samples; static VINFO *vinf=NULL,*vnf; -static long tickleft,samplesthatfit,vc_memory=0; +static unsigned long tickleft, samplesthatfit; +static long vc_memory=0; static int vc_softchn; static SLONGLONG idxsize,idxlpos,idxlend; static SLONG *vc_tickbuf=NULL; @@ -659,7 +660,7 @@ static void AddChannel(SLONG* ptr,NATIVE todo) void VC1_WriteSamples(SBYTE* buf,ULONG todo) { - int left,portion=0,count; + unsigned int left,portion=0,count; SBYTE *buffer; int t, pan, vol; diff --git a/sc2/src/sc2code/libs/sound/decoders/mikmod/virtch2.c b/sc2/src/sc2code/libs/sound/decoders/mikmod/virtch2.c index 9c42f2713..99042be41 100644 --- a/sc2/src/sc2code/libs/sound/decoders/mikmod/virtch2.c +++ b/sc2/src/sc2code/libs/sound/decoders/mikmod/virtch2.c @@ -119,7 +119,8 @@ typedef struct VINFO { static SWORD **Samples; static VINFO *vinf=NULL,*vnf; -static long tickleft,samplesthatfit,vc_memory=0; +static unsigned long tickleft,samplesthatfit; +static long vc_memory=0; static int vc_softchn; static SLONGLONG idxsize,idxlpos,idxlend; static SLONG *vc_tickbuf=NULL; @@ -710,7 +711,7 @@ static void AddChannel(SLONG* ptr,NATIVE todo) void VC2_WriteSamples(SBYTE* buf,ULONG todo) { - int left,portion=0; + unsigned int left,portion=0; SBYTE *buffer; int t,pan,vol;