pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2016-01-15
2016-01-15 19:32:49 by Martin Nilsson <nilsson@fastmail.com>
8fe2dedead0e0c9da2f2dd7e40ae9232cd9fcc26 (
4
lines) (+
2
/-
2
)
[
Show
|
Annotate
]
Branch:
8.1
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");