Assert cache->usage never becomes negative

Assert cache->usage never becomes negative as was occurring before the
fix in r52149.

Just in time, the fix in r52149 was made by Ulisses, not me.



SVN revision: 52190
This commit is contained in:
Lucas De Marchi 2010-09-13 13:58:34 +00:00
parent d287f127fd
commit 9c091e1714
1 changed files with 1 additions and 0 deletions

View File

@ -1447,6 +1447,7 @@ EAPI int
evas_cache_image_flush(Evas_Cache_Image *cache)
{
assert(cache);
assert(cache->usage >= 0);
if (cache->limit == -1) return -1;