cast before comparing
authorMatthias Braun <matze@braunis.de>
Sat, 26 May 2007 20:48:27 +0000 (20:48 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 26 May 2007 20:48:27 +0000 (20:48 +0000)
SVN-Revision: 5043

src/audio/sound_file.cpp

index a9e61e7..f77601f 100644 (file)
@@ -272,7 +272,7 @@ OggSoundFile::read(void* _buffer, size_t buffer_size)
       if(bytes_left_till_loop <= 4)
         break;
 
-      if(bytes_left_till_loop < bytes_to_read) {
+      if(bytes_left_till_loop < (ogg_int64_t) bytes_to_read) {
         bytes_to_read    = (size_t) bytes_left_till_loop;
       }
     }