pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2016-01-17
2016-01-17 02:26:05 by Martin Nilsson <nilsson@fastmail.com>
8d000fdfffaf64251593404bfa7fc744ed129797 (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
8.1
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");