Branch: Tag:

2008-05-01

2008-05-01 21:44:34 by Martin Stjernholm <mast@lysator.liu.se>

Use a better type for counting bytes.

Rev: src/array.c:1.204
Rev: src/array.h:1.73
Rev: src/block_alloc.h:1.85
Rev: src/block_alloc_h.h:1.25
Rev: src/builtin_functions.c:1.658
Rev: src/multiset.h:1.42
Rev: src/object.c:1.287
Rev: src/program.h:1.241
Rev: src/stralloc.c:1.214
Rev: src/stralloc.h:1.101

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: array.c,v 1.203 2008/05/01 20:15:44 mast Exp $ + || $Id: array.c,v 1.204 2008/05/01 21:44:32 mast Exp $   */      #include "global.h"
2816:    * memory allocated for arrays (array structs + svalues). Called from    * _memory_usage, which is exposed through Debug.memory_usage().    */ - void count_memory_in_arrays(INT32 *num_, INT32 *size_) + void count_memory_in_arrays(size_t *num_, size_t *size_)   { -  INT32 num=0, size=0; +  size_t num=0, size=0;    struct array *m;    for(m=first_array;m;m=m->next)    {