Branch: Tag:

2000-08-16

2000-08-16 16:12:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/array.c:1.84
Rev: src/array.h:1.28
Rev: src/fdlib.c:1.38
Rev: src/interpret.c:1.164
Rev: src/language.yacc:1.207
Rev: src/modules/MIME/mime.c:1.25
Rev: src/modules/_Crypto/crypto.c:1.37
Rev: src/modules/call_out/call_out.c:1.38
Rev: src/modules/files/efuns.c:1.83
Rev: src/modules/files/file.c:1.187
Rev: src/pike_memory.c:1.80
Rev: src/pike_memory.h:1.23

23:   #include "stuff.h"   #include "bignum.h"    - RCSID("$Id: array.c,v 1.83 2000/08/15 16:19:12 grubba Exp $"); + RCSID("$Id: array.c,v 1.84 2000/08/16 15:54:07 grubba Exp $");      PMOD_EXPORT struct array empty_array=   {
71:    v->type_field=BIT_MIXED | BIT_UNFINISHED;    v->flags=0;    -  v->malloced_size=size+extra_space; -  v->size=size; +  v->malloced_size = DO_NOT_WARN((INT32)(size + extra_space)); +  v->size = DO_NOT_WARN((INT32)size);    v->refs=1;    LINK_ARRAY(v);   
367:   /*    * Shrink an array destructively    */ - PMOD_EXPORT struct array *array_shrink(struct array *v,INT32 size) + PMOD_EXPORT struct array *array_shrink(struct array *v, ptrdiff_t size)   {    struct array *a;   
1742:    struct svalue *from,    struct svalue *to)   { -  INT32 i = -1; +  ptrdiff_t i = -1;       while((i=array_search(a,from,i+1)) >= 0) array_set_index(a,i,to);   }