瀏覽代碼

testaudiostreamdynamicresample.c: Fixed MSVC compiler warning.

Ryan C. Gordon 2 年之前
父節點
當前提交
66bcee2ca9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/testaudiostreamdynamicresample.c

+ 1 - 1
test/testaudiostreamdynamicresample.c

@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
         }
 
         /* 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);
         }