Branch: Tag:

2018-02-22

2018-02-22 19:29:10 by Martin Nilsson <nilsson@fastmail.com>

Remove base_sp from index_error

295:    struct svalue tmp;    SET_SVAL(tmp, T_ARRAY, 0, array, a);    if (a->size) { -  index_error(0,0,0,&tmp,ind, +  index_error(0,0,&tmp,ind,    "Index %"PRINTPIKEINT"d is out of array range "    "%d..%d.\n", p, -a->size, a->size-1);    } else { -  index_error(0,0,0,&tmp,ind, +  index_error(0,0,&tmp,ind,    "Attempt to index the empty array with %"PRINTPIKEINT"d.\n", p);    }    }
317:    {    struct svalue tmp;    SET_SVAL(tmp, T_ARRAY, 0, array, a); -  index_error(0,0,0,&tmp,ind,"Array index is neither int nor string.\n"); +  index_error(0,0,&tmp,ind,"Array index is neither int nor string.\n");    }    }   }
377:    {    struct svalue tmp;    SET_SVAL(tmp, T_ARRAY, 0, array, a); -  index_error(0,0,0,&tmp,ind,"Array index is neither int nor string.\n"); +  index_error(0,0,&tmp,ind,"Array index is neither int nor string.\n");    }    }   }