瀏覽代碼

rwops: Fixed another Windows build failure.

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

+ 1 - 1
src/audio/SDL_wave.c

@@ -1553,7 +1553,7 @@ static int WaveReadPartialChunkData(SDL_RWops *src, WaveChunk *chunk, size_t len
             return -2;
             return -2;
         }
         }
 
 
-        chunk->size = SDL_RWread(src, chunk->data, length);
+        chunk->size = (size_t) SDL_RWread(src, chunk->data, length);
         if (chunk->size != length) {
         if (chunk->size != length) {
             /* Expected to be handled by the caller. */
             /* Expected to be handled by the caller. */
         }
         }