- Warning fixes for DUMB.

SVN r4099 (trunk)
This commit is contained in:
Randy Heit 2013-02-08 00:49:27 +00:00
parent e66024fcbc
commit 7cd543c554
3 changed files with 5 additions and 5 deletions

View file

@ -497,7 +497,7 @@ static DUMB_IT_SIGDATA *it_okt_load_sigdata(DUMBFILE *f, int restrict)
j++; j++;
} }
} }
for (; i < sigdata->n_samples; i++) { for (; i < (unsigned)sigdata->n_samples; i++) {
sigdata->sample[i].flags = 0; sigdata->sample[i].flags = 0;
} }

View file

@ -354,7 +354,7 @@ static DUMB_IT_SIGDATA *it_stm_load_sigdata(DUMBFILE *f, int * version)
for ( n = 0, q = o / 16; n < sigdata->n_samples; ++n ) { for ( n = 0, q = o / 16; n < sigdata->n_samples; ++n ) {
if ( sample_offset[ n ] ) { if ( sample_offset[ n ] ) {
sample_offset[ n ] -= q; sample_offset[ n ] = (unsigned short)(sample_offset[ n ] - q);
} }
} }

View file

@ -400,14 +400,14 @@ static int limit_xm_resize(void *f, long n)
return 0; return 0;
} }
static int limit_xm_skip_end(void *f, long n) static int limit_xm_skip_end(void *f, int32 n)
{ {
DUMBFILE *df = f; DUMBFILE *df = f;
LIMITED_XM *lx = df->file; LIMITED_XM *lx = df->file;
return dumbfile_skip( lx->remaining, n ); return dumbfile_skip( lx->remaining, n );
} }
static int limit_xm_skip(void *f, long n) static int limit_xm_skip(void *f, int32 n)
{ {
LIMITED_XM *lx = f; LIMITED_XM *lx = f;
lx->ptr += n; lx->ptr += n;
@ -427,7 +427,7 @@ static int limit_xm_getc(void *f)
static long limit_xm_getnc(char *ptr, long n, void *f) static long limit_xm_getnc(char *ptr, int32 n, void *f)
{ {
LIMITED_XM *lx = f; LIMITED_XM *lx = f;
int left; int left;