Branch: Tag:

2014-12-04

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

Removed auto bignum checks.

841:   PMOD_EXPORT void f_random_seed(INT32 args)   {    INT_TYPE i; - #ifdef AUTO_BIGNUM +     check_all_args("random_seed",args,BIT_INT | BIT_OBJECT, 0);    if(TYPEOF(Pike_sp[-args]) == T_INT)    {
849: Inside #if defined(AUTO_BIGNUM)
   }else{    i=hash_svalue(Pike_sp-args);    } - #else -  get_all_args("random_seed",args,"%i",&i); - #endif +     my_srand(i);    pop_n_elems(args);   }
4637:    if(args<1)    SIMPLE_TOO_FEW_ARGS_ERROR("objectp", 1);    if(TYPEOF(Pike_sp[-args]) != T_OBJECT || !Pike_sp[-args].u.object->prog - #ifdef AUTO_BIGNUM -  || is_bignum_object(Pike_sp[-args].u.object) - #endif -  ) +  || is_bignum_object(Pike_sp[-args].u.object))    {    pop_n_elems(args);    push_int(0);
9204:    for (i=0; i<n; i++)    {    ITEM(d)[i].u.integer=start; - #ifdef AUTO_BIGNUM +     if ((step>0 && start+step<start) ||    (step<0 && start+step>start)) /* overflow */    {
9217: Inside #if defined(AUTO_BIGNUM)
   f_enumerate(3);    return;    } - #endif +     start+=step;    }    d->type_field = BIT_INT;