pike.git
/
src
/
operators.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/operators.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: operators.c,v 1.258 2010/05/27 23:16:59 mast Exp $
+
||
$Id$
*/ #include "global.h" #include <math.h> #include "interpret.h" #include "svalue.h" #include "multiset.h" #include "mapping.h" #include "array.h" #include "stralloc.h"
pike.git/src/operators.c:117:
get_name_of_type (ind->type)); } case T_FUNCTION: case T_PROGRAM: if (program_index_no_free(to, what, ind)) break; goto index_error; #ifdef AUTO_BIGNUM case T_INT:
-
if (ind->type == T_STRING) {
+
if (ind->type == T_STRING
&& !IS_UNDEFINED (what
)
)
{
INT_TYPE val = what->u.integer; convert_svalue_to_bignum(what); index_no_free(to, what, ind); if(IS_UNDEFINED(to)) { if (val) { Pike_error("Indexing the integer %"PRINTPIKEINT"d " "with unknown method \"%S\".\n", val, ind->u.string); } else {