Skip to content
Permalink
Browse files

add more missing casts to SDL_Swap?E32 calls

  • Loading branch information
sezero committed Dec 16, 2019
1 parent fc0fe93 commit ca41cee016eb4476f150da4e0d639526b7826562
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/codecs/timidity/instrum.c
  2. +1 −1 src/codecs/timidity/readmidi.c
@@ -239,7 +239,7 @@ static Instrument *load_instrument(MidiSong *song, char *name, int percussion,
thing = SDL_SwapLE16(tmpshort);
#define READ_LONG(thing) \
if (1 != SDL_RWread(rw, &tmplong, 4, 1)) goto fail; \
thing = SDL_SwapLE32(tmplong);
thing = (Sint32)SDL_SwapLE32((Uint32)tmplong);

SDL_RWseek(rw, 7, RW_SEEK_CUR); /* Skip the wave name */

@@ -293,7 +293,7 @@ static int read_track(MidiSong *song, int append)
SNDDBG(("Can't read track header.\n"));
return -1;
}
len=SDL_SwapBE32(len);
len=(Sint32)SDL_SwapBE32((Uint32)len);
next_pos = SDL_RWtell(song->rw) + len;
if (memcmp(tmp, "MTrk", 4))
{

0 comments on commit ca41cee

Please sign in to comment.