fix warnings

This commit is contained in:
cxgeorge 2002-02-01 02:08:27 +00:00
parent cee5e717c5
commit a5a770b622

View File

@ -200,7 +200,7 @@ get_sound(const string& file_name) {
// ...the sound was not found in the cache/pool. // ...the sound was not found in the cache/pool.
audio=load(path); audio=load(path);
if (audio) { if (audio) {
while (_sounds.size() >= _cache_limit) { while (_sounds.size() >= (unsigned int)_cache_limit) {
uncache_a_sound(); uncache_a_sound();
} }
// Put it in the pool: // Put it in the pool:
@ -331,7 +331,7 @@ set_cache_limit(int count) {
audio_debug("MilesAudioManager::set_cache_limit(count=" audio_debug("MilesAudioManager::set_cache_limit(count="
<<count<<")"); <<count<<")");
assert(is_valid()); assert(is_valid());
while (_lru.size() > count) { while (_lru.size() > (unsigned int) count) {
uncache_a_sound(); uncache_a_sound();
} }
_cache_limit=count; _cache_limit=count;