Branch: Tag:

2016-01-17

2016-01-17 02:26:05 by Martin Nilsson <nilsson@fastmail.com>

Back to symbol lookup as a workaround. The precompiler generates the wrong function enumeration.

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