mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 22:42:57 +00:00
- Warning fixes for DUMB.
SVN r4099 (trunk)
This commit is contained in:
parent
e66024fcbc
commit
7cd543c554
3 changed files with 5 additions and 5 deletions
|
@ -497,7 +497,7 @@ static DUMB_IT_SIGDATA *it_okt_load_sigdata(DUMBFILE *f, int restrict)
|
|||
j++;
|
||||
}
|
||||
}
|
||||
for (; i < sigdata->n_samples; i++) {
|
||||
for (; i < (unsigned)sigdata->n_samples; i++) {
|
||||
sigdata->sample[i].flags = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ) {
|
||||
if ( sample_offset[ n ] ) {
|
||||
sample_offset[ n ] -= q;
|
||||
sample_offset[ n ] = (unsigned short)(sample_offset[ n ] - q);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -400,14 +400,14 @@ static int limit_xm_resize(void *f, long n)
|
|||
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;
|
||||
LIMITED_XM *lx = df->file;
|
||||
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;
|
||||
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;
|
||||
int left;
|
||||
|
|
Loading…
Reference in a new issue