Ignore:
Timestamp:
Apr 22, 2011, 4:13:04 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: some cleaning up in trans_image before I templatise half of it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/seq.cpp

    r524 r527  
    1616#include "lisp.h"
    1717
    18 int sequence::size()
     18size_t sequence::MemUsage()
    1919{
    20   int t=0;
    21   for (int i=0; i<total; i++)
    22   {
    23     if (cache.loaded(seq[i]))
    24       t+=cache.fig(seq[i])->size();
    25   }
    26   return t;
     20    size_t t = 0;
     21    for (int i = 0; i < total; i++)
     22        if (cache.loaded(seq[i]))
     23            t += cache.fig(seq[i])->MemUsage();
     24    return t;
    2725}
    2826
Note: See TracChangeset for help on using the changeset viewer.