13
0

Fix assert in Waveview cache size

previous condition made no sense. effectively assert(bytes > 0).
This commit is contained in:
Robin Gareus 2021-05-23 21:41:45 +02:00
parent 445f9a51bf
commit a6fc82537e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -190,7 +190,8 @@ WaveViewCache::increase_size (uint64_t bytes)
void
WaveViewCache::decrease_size (uint64_t bytes)
{
assert (image_cache_size - bytes < image_cache_size);
assert (bytes > 0);
assert (bytes <= image_cache_size);
image_cache_size -= bytes;
}