pike.git / src / rbtree.c

version» Context lines:

pike.git/src/rbtree.c:1:   /*   || 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.18 2002/12/07 22:53:07 mast Exp $ + || $Id: rbtree.c,v 1.19 2002/12/07 23:16:46 grubba Exp $   */      /* An implementation of a threaded red/black balanced binary tree.    *    * Created 2001-04-27 by Martin Stjernholm <mast@lysator.liu.se>    */      #include "global.h"    - RCSID("$Id: rbtree.c,v 1.18 2002/12/07 22:53:07 mast Exp $"); + RCSID("$Id: rbtree.c,v 1.19 2002/12/07 23:16:46 grubba Exp $");      #include "interpret.h"   #include "pike_error.h"   #include "rbtree_low.h"      #include <assert.h>   #include <stdlib.h>      #if defined (PIKE_DEBUG) || defined (TEST_MULTISET)   
pike.git/src/rbtree.c:1454:    depth * sizeof (struct rb_node_hdr *) +    (depth + 1) * sizeof (unsigned);   #ifdef HAVE_ALLOCA    stack = alloca (stack_size);    if (!stack)   #endif    {    stack = xalloc (stack_size);    stack_malloced = 1;    } -  top_idx = (unsigned *) stack + depth; +  top_idx = (unsigned *) (stack + depth);    memset (top_idx, 0, (depth + 1) * sizeof (unsigned));    depth--;    }       while (count < length) {    struct rb_node_hdr *next;   #ifdef PIKE_DEBUG    if (!list) Pike_fatal ("Premature end of list at %"PRINTSIZET"u, "    "expected %"PRINTSIZET"u.\n", count, length);   #endif