From a5a770b622bdfe128c40de3b74d607f5ac704cd9 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Fri, 1 Feb 2002 02:08:27 +0000 Subject: [PATCH] fix warnings --- panda/src/audiotraits/milesAudioManager.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/audiotraits/milesAudioManager.cxx b/panda/src/audiotraits/milesAudioManager.cxx index fd4b5be021..13f0cf8450 100644 --- a/panda/src/audiotraits/milesAudioManager.cxx +++ b/panda/src/audiotraits/milesAudioManager.cxx @@ -200,7 +200,7 @@ get_sound(const string& file_name) { // ...the sound was not found in the cache/pool. audio=load(path); if (audio) { - while (_sounds.size() >= _cache_limit) { + while (_sounds.size() >= (unsigned int)_cache_limit) { uncache_a_sound(); } // Put it in the pool: @@ -331,7 +331,7 @@ set_cache_limit(int count) { audio_debug("MilesAudioManager::set_cache_limit(count=" < count) { + while (_lru.size() > (unsigned int) count) { uncache_a_sound(); } _cache_limit=count;