From e4cc9a00a3cdc59773e99efea911c7d742b365c1 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Wed, 7 Apr 2004 04:23:55 +0000 Subject: [PATCH] removing some warnings. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1353 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/sound/decoders/mikmod/load_mod.c | 2 +- sc2/src/sc2code/libs/sound/decoders/mikmod/mlutil.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sc2/src/sc2code/libs/sound/decoders/mikmod/load_mod.c b/sc2/src/sc2code/libs/sound/decoders/mikmod/load_mod.c index 92c674368..2bebb8b21 100644 --- a/sc2/src/sc2code/libs/sound/decoders/mikmod/load_mod.c +++ b/sc2/src/sc2code/libs/sound/decoders/mikmod/load_mod.c @@ -289,7 +289,7 @@ static UBYTE *ConvertTrack(MODNOTE *n) /* Loads all patterns of a modfile and converts them into the 3 byte format. */ static BOOL ML_LoadPatterns(void) { - int t, s, tracks = 0; + unsigned int t, s, tracks = 0; if (!AllocPatterns()) return 0; diff --git a/sc2/src/sc2code/libs/sound/decoders/mikmod/mlutil.c b/sc2/src/sc2code/libs/sound/decoders/mikmod/mlutil.c index e2d629edc..67955b260 100644 --- a/sc2/src/sc2code/libs/sound/decoders/mikmod/mlutil.c +++ b/sc2/src/sc2code/libs/sound/decoders/mikmod/mlutil.c @@ -72,18 +72,18 @@ int speed_to_finetune(ULONG speed,int sample) int ctmp=0,tmp,note=1,finetune=0; speed>>=1; - while((tmp=getfrequency(of.flags,getlinearperiod(note<<1,0)))speed) + while(tmp>(int)speed) tmp=getfrequency(of.flags,getlinearperiod(note<<1,--finetune)); else { note--; - while(ctmp