Branch: Tag:

2016-01-15

2016-01-15 19:32:49 by Martin Nilsson <nilsson@fastmail.com>

No need to dynamically look up random function number.

2125:    static INT_TYPE read_int(INT_TYPE i)    {    push_int(i); -  struct program *p = Pike_fp->current_object->prog; -  apply_current(find_shared_string_identifier(MK_STRING("random"), p), 1); +  apply_current(f_RandomInterface_random_1_fun_num, 1);    if( TYPEOF(Pike_sp[-1]) != T_INT )    Pike_error("Illegal return value from random.\n");