src/codecs/load_voc.c
changeset 1093 6f0bea2ab267
parent 999 1a87fe70802d
child 1129 888c7be704ce
     1.1 --- a/src/codecs/load_voc.c	Tue Dec 17 21:56:56 2019 +0300
     1.2 +++ b/src/codecs/load_voc.c	Wed Dec 18 15:51:40 2019 +0300
     1.3 @@ -301,7 +301,7 @@
     1.4                  if (SDL_RWread(src, trash, sizeof (Uint8), 2) != 2)
     1.5                      return 0;
     1.6  
     1.7 -                /* Falling! Falling! */
     1.8 +                /* fallthrough */
     1.9  
    1.10              default:  /* text block or other krapola. */
    1.11                  for(i = 0; i < sblen; i++)
    1.12 @@ -351,12 +351,12 @@
    1.13          if (v->size == ST_SIZE_WORD)
    1.14          {
    1.15              #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
    1.16 -                Uint16 *samples = (Uint16 *)buf;
    1.17 -                for (; v->rest > 0; v->rest -= 2)
    1.18 -                {
    1.19 -                    *samples = SDL_SwapLE16(*samples);
    1.20 -                    samples++;
    1.21 -                }
    1.22 +            Uint16 *samples = (Uint16 *)buf;
    1.23 +            for (; v->rest > 0; v->rest -= 2)
    1.24 +            {
    1.25 +                *samples = SDL_SwapLE16(*samples);
    1.26 +                samples++;
    1.27 +            }
    1.28              #endif
    1.29              done >>= 1;
    1.30          }