Fix assert in Waveview cache size
previous condition made no sense. effectively assert(bytes > 0).
This commit is contained in:
parent
445f9a51bf
commit
a6fc82537e
@ -190,7 +190,8 @@ WaveViewCache::increase_size (uint64_t bytes)
|
|||||||
void
|
void
|
||||||
WaveViewCache::decrease_size (uint64_t bytes)
|
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;
|
image_cache_size -= bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user