2010-10-10
2010-10-10 21:56:21 by Martin Stjernholm <mast@lysator.liu.se>
-
40aea807d777b11c0c1103220dd8ff36735ce5d3
(5 lines)
(+3/-2)
[
Show
| Annotate
]
Branch: 7.9
Don't index UNDEFINED as bignum.
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: operators.c,v 1.258 2010/05/27 23:16:59 mast Exp $
+ || $Id$
*/
#include "global.h"
124: Inside #if defined(AUTO_BIGNUM)
#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);