Branch: Tag:

2003-05-15

2003-05-15 15:33:31 by Martin Stjernholm <mast@lysator.liu.se>

Improved some range check error messages.

Rev: src/array.c:1.147
Rev: src/builtin.cmod:1.136
Rev: src/builtin_functions.c:1.493
Rev: src/error.c:1.108
Rev: src/fd_control.c:1.48
Rev: src/opcodes.c:1.147
Rev: src/operators.c:1.179
Rev: src/stralloc.c:1.156

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: builtin.cmod,v 1.135 2003/04/28 18:32:38 mast Exp $ + || $Id: builtin.cmod,v 1.136 2003/05/15 15:33:30 mast Exp $   */      #include "global.h"
1355:       if ((index < -numargs) || (index >= numargs)) {    index_error("pike_frame->`[]=", Pike_sp-args, args, NULL, Pike_sp-args, -  "Index %"PRINTPIKEINT"d is out of array range 0 - %d,\n", +  "Index %"PRINTPIKEINT"d is out of array range 0..%d,\n",    index, numargs-1);    } else if (index < 0) {    index += numargs;