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
1 changed files with 2 additions and 1 deletions

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;
}