Branch: Tag:

2000-08-16

2000-08-16 10:50:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/builtin_functions.c:1.298
Rev: src/docode.c:1.79
Rev: src/encode.c:1.67
Rev: src/gc.c:1.122
Rev: src/las.c:1.191
Rev: src/module_support.c:1.36
Rev: src/peep.c:1.35
Rev: src/pike_memory.h:1.22
Rev: src/pike_types.c:1.135
Rev: src/pike_types.h:1.44
Rev: src/program.c:1.262

5:   \*/   /**/   #include "global.h" - RCSID("$Id: pike_types.c,v 1.134 2000/08/15 16:01:14 grubba Exp $"); + RCSID("$Id: pike_types.c,v 1.135 2000/08/16 10:30:46 grubba Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"
235:      void type_stack_reverse(void)   { -  INT32 a; +  ptrdiff_t a;    a=pop_stack_mark();    reverse((char *)(Pike_compiler->type_stackp-a),a,1);   }      void push_type_int(INT32 i)   { -  int e; -  for(e=0;e<(int)sizeof(i);e++) -  push_type( (i>>(e*8)) & 0xff ); +  ptrdiff_t e; +  for(e = 0; e < (ptrdiff_t)sizeof(i); e++) +  push_type(DO_NOT_WARN((unsigned char)((i>>(e*8)) & 0xff)));   }      void push_type_int_backwards(INT32 i)
265:      void push_unfinished_type(char *s)   { -  int e; +  ptrdiff_t e;    e=type_length(s);    for(e--;e>=0;e--) push_type(s[e]);   }
336:      struct pike_string *debug_pop_unfinished_type(void)   { -  int len,e; +  ptrdiff_t len, e;    struct pike_string *s;    len=pop_stack_mark();    s=begin_shared_string(len);