add more missing casts to SDL_Swap?E32 calls
authorOzkan Sezer
Mon, 16 Dec 2019 10:55:02 +0300
changeset 1084c7cedfb5f65f
parent 1083 7a3b49dbf90f
child 1085 c91c7bce78c6
add more missing casts to SDL_Swap?E32 calls
src/codecs/timidity/instrum.c
src/codecs/timidity/readmidi.c
     1.1 --- a/src/codecs/timidity/instrum.c	Mon Dec 16 10:33:55 2019 +0300
     1.2 +++ b/src/codecs/timidity/instrum.c	Mon Dec 16 10:55:02 2019 +0300
     1.3 @@ -239,7 +239,7 @@
     1.4        thing = SDL_SwapLE16(tmpshort);
     1.5  #define READ_LONG(thing) \
     1.6        if (1 != SDL_RWread(rw, &tmplong, 4, 1)) goto fail; \
     1.7 -      thing = SDL_SwapLE32(tmplong);
     1.8 +      thing = (Sint32)SDL_SwapLE32((Uint32)tmplong);
     1.9  
    1.10        SDL_RWseek(rw, 7, RW_SEEK_CUR); /* Skip the wave name */
    1.11  
     2.1 --- a/src/codecs/timidity/readmidi.c	Mon Dec 16 10:33:55 2019 +0300
     2.2 +++ b/src/codecs/timidity/readmidi.c	Mon Dec 16 10:55:02 2019 +0300
     2.3 @@ -293,7 +293,7 @@
     2.4        SNDDBG(("Can't read track header.\n"));
     2.5        return -1;
     2.6      }
     2.7 -  len=SDL_SwapBE32(len);
     2.8 +  len=(Sint32)SDL_SwapBE32((Uint32)len);
     2.9    next_pos = SDL_RWtell(song->rw) + len;
    2.10    if (memcmp(tmp, "MTrk", 4))
    2.11      {