Branch: Tag:

2005-05-19

2005-05-19 22:35:40 by Martin Stjernholm <mast@lysator.liu.se>

Fixed various type errors for 64 bit architectures and other warnings. (Most
are in harmless debug messages, but anyway..)

Rev: src/array.c:1.181
Rev: src/backend.cmod:1.175
Rev: src/builtin_functions.c:1.599
Rev: src/code/bytecode.h:1.11
Rev: src/encode.c:1.228
Rev: src/gc.c:1.270
Rev: src/interpret_functions.h:1.184
Rev: src/las.c:1.364
Rev: src/modules/Image/image.c:1.222
Rev: src/modules/Parser/html.c:1.177
Rev: src/modules/_Charset/iso2022.c:1.38
Rev: src/modules/files/file.c:1.351
Rev: src/modules/files/sendfile.c:1.72
Rev: src/modules/spider/xml.c:1.75
Rev: src/modules/system/memory.c:1.34
Rev: src/object.c:1.267
Rev: src/peep.c:1.106
Rev: src/pike_types.c:1.247
Rev: src/post_modules/Shuffler/a_source_system_memory.c:1.12
Rev: src/post_modules/Shuffler/b_source_normal_file.c:1.14
Rev: src/program.c:1.588
Rev: src/rbtree.c:1.25
Rev: src/threads.c:1.244

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: encode.c,v 1.227 2004/12/20 13:14:49 mast Exp $ + || $Id: encode.c,v 1.228 2005/05/19 22:35:26 mast Exp $   */      #include "global.h"
2281:    bytecode = p->strings[string_no];       if (bytecode->len % 3) { -  Pike_error("Bad bytecode string length: %d (expected multiple of 3).\n", +  Pike_error("Bad bytecode string length: " +  "%"PRINTPTRDIFFT"d (expected multiple of 3).\n",    bytecode->len);    }   
3465:    * __pragma_save_parent__.    */    lex.pragmas = (old_pragmas & ~ID_SAVE_PARENT)|ID_DONT_SAVE_PARENT; -  SET_ONERROR(err2, set_lex_pragmas, old_pragmas); +  SET_ONERROR(err2, set_lex_pragmas, (ptrdiff_t) old_pragmas);       /* Start the new program. */    orig_compilation_depth = compilation_depth;
3563:    for (e=0; e<(int)local_num_relocations; e++) {    size_t reloc;    decode_number(reloc, data); -  CHECK_RELOC(reloc, local_num_program); +  CHECK_RELOC(reloc, (size_t) local_num_program);    add_to_relocations(reloc);    }   
4108:    ref_push_program (p); \    decode_error(Pike_sp - 1, NULL, \    "Value mismatch for num_" TOSTR(NAME) ": " \ -  "%d != %d (bytecode method: %d)\n", \ -  PIKE_CONCAT(local_num_, NAME), \ -  p->PIKE_CONCAT(num_, NAME), \ +  "%"PRINTSIZET"d != %"PRINTSIZET"d " \ +  "(bytecode method: %d)\n", \ +  (size_t) PIKE_CONCAT(local_num_, NAME), \ +  (size_t) p->PIKE_CONCAT(num_, NAME), \    bytecode_method); \    }   #include "program_areas.h"