Branch: Tag:

2008-06-28

2008-06-28 07:11:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed some bugs in eval_low().

Rev: src/las.c:1.423

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: las.c,v 1.422 2008/06/28 07:04:04 grubba Exp $ + || $Id: las.c,v 1.423 2008/06/28 07:11:43 grubba Exp $   */      #include "global.h"
5203: Inside #if defined(PIKE_USE_MACHINE_CODE)
   if (prog->num_program > malloc_prog->total_size) {   #ifdef PIKE_USE_MACHINE_CODE    char *start = (char *) (prog->program + malloc_prog->total_size); -  size_t len = (malloc_prog->num_program - malloc_prog->total_size) * +  size_t len = (prog->num_program - malloc_prog->total_size) *    sizeof (prog->program[0]);    make_area_executable (start, len);   endif -  malloc_prog->total_size = malloc_prog->num_program; +  malloc_prog->total_size = prog->num_program;    }       tmp_callback=add_to_callback(&evaluator_callbacks,
5274: Inside #if defined(PIKE_USE_MACHINE_CODE)
  #endif /* VALGRIND_DISCARD_TRANSLATIONS */   #endif /* PIKE_USE_MACHINE_CODE */    -  prog->num_program=num_program; +  malloc_prog->total_size = prog->num_program = num_program;       return ret;   }