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: rbtree.c,v 1.24 2004/09/18 20:50:55 nilsson Exp $ + || $Id: rbtree.c,v 1.25 2005/05/19 22:35:34 mast Exp $   */      /* An implementation of a threaded red/black balanced binary tree.
1711: Inside #if defined (PIKE_DEBUG) || defined (TEST_MULTISET)
   struct rb_node_hdr *node = root;    struct rb_node_hdr *n, *n2;    struct rbstack_ptr p; -  size_t depth = 0; +  int depth = 0;    RBSTACK_INIT (rbstack);       LOW_RB_TRAVERSE (
1839: Inside #if defined (PIKE_DEBUG) || defined (TEST_MULTISET)
   if (root) {    struct rb_node_hdr *node = root, *n, *n2;    struct rbstack_ptr p; -  size_t blacks = 1, max_blacks = 0, depth = 0; +  size_t blacks = 1, max_blacks = 0; +  int depth = 0;    RBSTACK_INIT (rbstack);       if (root->flags & RB_RED) custom_rb_fatal (root, dump_data, extra,
1862: Inside #if defined (PIKE_DEBUG) || defined (TEST_MULTISET)
   if (max_blacks) {    if (blacks != max_blacks)    custom_rb_fatal (root, dump_data, extra, -  "Unbalanced tree - leftmost branch is %d, " -  "prev @ %p is %d.\n", max_blacks, node, blacks); +  "Unbalanced tree - leftmost branch is %"PRINTSIZET"d, " +  "prev @ %p is %"PRINTSIZET"d.\n", +  max_blacks, node, blacks);    }    else max_blacks = blacks;   
1888: Inside #if defined (PIKE_DEBUG) || defined (TEST_MULTISET)
   }, { /* next is leaf. */    if (blacks != max_blacks)    custom_rb_fatal (root, dump_data, extra, -  "Unbalanced tree - leftmost branch is %d, " -  "next @ %p is %d.\n", max_blacks, node, blacks); +  "Unbalanced tree - leftmost branch is %"PRINTSIZET"d, " +  "next @ %p is %"PRINTSIZET"d.\n", +  max_blacks, node, blacks);       p = rbstack;    n2 = node;