From: Matthias Braun Date: Sat, 26 May 2007 20:48:27 +0000 (+0000) Subject: cast before comparing X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=089eb04e173803748ced0f13363e8d55c7c432e2;p=supertux.git cast before comparing SVN-Revision: 5043 --- diff --git a/src/audio/sound_file.cpp b/src/audio/sound_file.cpp index a9e61e748..f77601f99 100644 --- a/src/audio/sound_file.cpp +++ b/src/audio/sound_file.cpp @@ -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; } }