removing some warnings.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1353 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2004-04-07 04:23:55 +00:00
parent e8d35d8c50
commit e4cc9a00a3
2 changed files with 4 additions and 4 deletions
@@ -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;
@@ -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=getfrequency(of.flags,getlinearperiod(note<<1,0)))<(int)speed) {
ctmp=tmp;
note++;
}
if(tmp!=(int)speed) {
if((tmp-speed)<(speed-ctmp))
while(tmp>speed)
while(tmp>(int)speed)
tmp=getfrequency(of.flags,getlinearperiod(note<<1,--finetune));
else {
note--;
while(ctmp<speed)
while(ctmp<(int)speed)
ctmp=getfrequency(of.flags,getlinearperiod(note<<1,++finetune));
}
}