Explorar o código

testaudiostreamdynamicresample.c: Fixed MSVC compiler warning.

Ryan C. Gordon %!s(int64=2) %!d(string=hai) anos
pai
achega
66bcee2ca9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/testaudiostreamdynamicresample.c

+ 1 - 1
test/testaudiostreamdynamicresample.c

@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
         }
         }
 
 
         /* keep it looping. */
         /* keep it looping. */
-        if (SDL_GetAudioStreamAvailable(stream) < (audio_len / 2)) {
+        if (SDL_GetAudioStreamAvailable(stream) < ((int) (audio_len / 2))) {
             SDL_PutAudioStreamData(stream, audio_buf, audio_len);
             SDL_PutAudioStreamData(stream, audio_buf, audio_len);
         }
         }