Branch: Tag:

2000-08-10

2000-08-10 09:20:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/block_alloc.h:1.22
Rev: src/cpp.c:1.73
Rev: src/cyclic.c:1.5
Rev: src/docode.c:1.77
Rev: src/dynamic_buffer.c:1.12
Rev: src/dynamic_load.c:1.42
Rev: src/encode.c:1.63
Rev: src/fsort_template.h:1.8
Rev: src/pike_macros.h:1.19
Rev: src/stuff.c:1.12
Rev: src/stuff.h:1.8

25:   #include "version.h"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.62 2000/07/07 19:27:12 grubba Exp $"); + RCSID("$Id: encode.c,v 1.63 2000/08/10 09:01:00 grubba Exp $");      /* #define ENCODE_DEBUG */   
186:   static int (*tag_to_type)(int) = type_to_tag;      /* Let's cram those bits... */ - static void code_entry(int tag, INT32 num, struct encode_data *data) + static void code_entry(int tag, ptrdiff_t num, struct encode_data *data)   {    int t;    EDB( -  fprintf(stderr,"encode: code_entry(tag=%d (%s), num=%d)\n", +  fprintf(stderr,"encode: code_entry(tag=%d (%s), num=%ld)\n",    tag,    get_name_of_type(tag_to_type(tag)), -  num) ); +  (long)num) );    if(num<0)    {    tag |= TAG_NEG;
229:    }   }    - static void code_number(INT32 num, struct encode_data *data) + static void code_number(ptrdiff_t num, struct encode_data *data)   {    code_entry(num & 15, num >> 4, data);   }
1602:    return ((unsigned char *)(*v))[-1];   }    - static INT32 extract_int(char **v, INT32 *l) + static ptrdiff_t extract_int(char **v, INT32 *l)   { -  INT32 j,i; +  INT32 j; +  ptrdiff_t i;       j=extract_char(v,l);    if(j & 0x80) return (j & 0x7f);