diff src/audio/disk/SDL_diskaudio.c @ 3253:5d7ef5970073

Fixed issues building 64-bit Windows binary
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Sep 2009 23:37:35 +0000
parents 99210400e8b9
children f7b03b6838cb
line wrap: on
line diff
--- a/src/audio/disk/SDL_diskaudio.c	Sat Sep 05 21:31:50 2009 +0000
+++ b/src/audio/disk/SDL_diskaudio.c	Sat Sep 05 23:37:35 2009 +0000
@@ -67,14 +67,14 @@
 static void
 DISKAUD_PlayDevice(_THIS)
 {
-    int written;
+    size_t written;
 
     /* Write the audio data */
     written = SDL_RWwrite(this->hidden->output,
                           this->hidden->mixbuf, 1, this->hidden->mixlen);
 
     /* If we couldn't write, assume fatal error for now */
-    if ((Uint32) written != this->hidden->mixlen) {
+    if (written != this->hidden->mixlen) {
         this->enabled = 0;
     }
 #ifdef DEBUG_AUDIO