Branch: Tag:

2014-12-04

2014-12-04 19:23:46 by Martin Nilsson <nilsson@opera.com>

Removed auto bignum checks.

4867:    return mixed_type_string;       case T_INT: - #ifdef AUTO_BIGNUM +     /* Don't force Gmp.mpz to be loaded here since this function    * is called long before the master object is compiled...    * /Hubbe    */    p=get_auto_bignum_program_or_zero();    goto comefrom_int_index; - #endif +     case T_ZERO:    case T_TYPE:    case PIKE_T_RING:
5390:    */    return low_match_types(type->car, index_type, 0) ? 1 : -1;    - #ifdef AUTO_BIGNUM +     case T_INT: - #endif +     case T_PROGRAM:    return !!low_match_types(string_type_string, index_type, 0);   
6148:    }    res = 1;    } - #ifdef AUTO_BIGNUM +     /* FIXME: Objects that emulate integers? */    else if( TYPEOF(*sval) == PIKE_T_OBJECT )    {
6176: Inside #if defined(AUTO_BIGNUM)
   res = 1;    }    } - #endif +     break;    default:    res = (type->type == TYPEOF(*sval));
7827:    type_stack_mark();    if(s->u.object->prog)    { - #ifdef AUTO_BIGNUM +     if(is_bignum_object(s->u.object))    {    push_int_type(MIN_INT32, MAX_INT32);    }    else - #endif +     {    push_object_type(1, s->u.object->prog->id);    }