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: program.c,v 1.261 2000/08/15 15:52:55 grubba Exp $"); + RCSID("$Id: program.c,v 1.262 2000/08/16 10:25:52 grubba Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
529: Inside #if defined(PIKE_DEBUG) and #if defined(DEBUG_MALLOC)
  #ifdef DEBUG_MALLOC    char *tmp;   #endif -  INT32 pos; +  ptrdiff_t pos;    INT32 l;    if(!line) line=&l;   
545: Inside #if defined(PIKE_DEBUG)
   {    char *tmp=get_line(p->program+pos, p, line);    if(tmp && *line) return tmp; -  if(pos+1>=(long)p->num_program) break; +  if(pos+1 >= (ptrdiff_t)p->num_program) break;    }    *line=0;    return 0;
3075:    add_to_linenumbers(0);    copy_shared_string(Pike_compiler->last_file, current_file);    } -  insert_small_number(PC-Pike_compiler->last_pc); +  insert_small_number(DO_NOT_WARN((INT32)(PC-Pike_compiler->last_pc)));    insert_small_number(current_line-Pike_compiler->last_line);    Pike_compiler->last_line=current_line; -  Pike_compiler->last_pc=PC; +  Pike_compiler->last_pc = DO_NOT_WARN((INT32)PC);    }   }   
3113:    pid=prog->id;    }    -  if (offset > (INT32)prog->num_program || offset<0) +  if ((offset > (ptrdiff_t)prog->num_program) || (offset < 0))    return file;       while(cnt < prog->linenumbers + prog->num_linenumbers)
3861:   #define GET_STORAGE_CACHE_SIZE 1024   static struct get_storage_cache   { -  INT32 oid, pid, offset; +  INT32 oid, pid; +  ptrdiff_t offset;   } get_storage_cache[GET_STORAGE_CACHE_SIZE];      ptrdiff_t low_get_storage(struct program *o, struct program *p)
3905:      PMOD_EXPORT char *get_storage(struct object *o, struct program *p)   { -  int offset; +  ptrdiff_t offset;      #ifdef _REENTRANT    if(d_flag) CHECK_INTERPRETER_LOCK();