Skip to content

Commit

Permalink
load_voc.c (voc_read): make it to return unsigned.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Nov 18, 2019
1 parent ab5be17 commit b4e0878
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions load_voc.c
Expand Up @@ -317,7 +317,7 @@ static int voc_get_block(SDL_RWops *src, vs_t *v, SDL_AudioSpec *spec)
}


static int voc_read(SDL_RWops *src, vs_t *v, Uint8 *buf, SDL_AudioSpec *spec)
static Uint32 voc_read(SDL_RWops *src, vs_t *v, Uint8 *buf, SDL_AudioSpec *spec)
{
Uint32 done = 0;
Uint8 silence = 0x80;
Expand Down Expand Up @@ -360,7 +360,7 @@ static int voc_read(SDL_RWops *src, vs_t *v, Uint8 *buf, SDL_AudioSpec *spec)
}
}

return (int)done;
return done;
} /* voc_read */


Expand Down Expand Up @@ -407,7 +407,7 @@ SDL_AudioSpec *Mix_LoadVOC_RW (SDL_RWops *src, int freesrc,

fillptr = *audio_buf;

while (voc_read(src, &v, fillptr, spec) > 0)
while (voc_read(src, &v, fillptr, spec))
{
if (!voc_get_block(src, &v, spec))
goto done;
Expand Down

0 comments on commit b4e0878

Please sign in to comment.