mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
fix warnings
This commit is contained in:
parent
cee5e717c5
commit
a5a770b622
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user