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

1:   #include "global.h"   #include "cyclic.h"    - RCSID("$Id: cyclic.c,v 1.4 2000/05/07 00:39:17 hubbe Exp $"); + RCSID("$Id: cyclic.c,v 1.5 2000/08/10 08:54:34 grubba Exp $");      #define CYCLIC_HASH_SIZE 4711   
9:      static void low_unlink_cyclic(CYCLIC *c)   { -  unsigned int h; +  size_t h;    CYCLIC **p; -  h=(int)c->id; +  h=(ptrdiff_t)c->id;    h*=33; -  h|=(int)c->a; +  h|=(ptrdiff_t)c->a;    h*=33; -  h|=(int)c->b; +  h|=(ptrdiff_t)c->b;    h*=33; -  h|=(int)c->th; +  h|=(ptrdiff_t)c->th;    h*=33;    h%=CYCLIC_HASH_SIZE;   
44:    void *a,    void *b)   { -  unsigned int h; +  size_t h;    void *ret=0;    CYCLIC *p;    -  h=(int)id; +  h=(ptrdiff_t)id;    h*=33; -  h|=(int)a; +  h|=(ptrdiff_t)a;    h*=33; -  h|=(int)b; +  h|=(ptrdiff_t)b;    h*=33; -  h|=(int)th; +  h|=(ptrdiff_t)th;    h*=33;    h%=CYCLIC_HASH_SIZE;   
67:    }    }    -  c->ret=(void *)1; +  c->ret=(void *)(ptrdiff_t)1;    c->a=a;    c->b=b;    c->id=id;