pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
1999-10-26
1999-10-26 14:14:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>
67c6bd28cb50dca57cadbb7196523cacd66569ac (
6
lines) (+
4
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed bug in f_random().
Rev: src/builtin_functions.c:1.195
5:
\*/ /**/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
194
1999/10/26
00
:
18
:
04
hubbe
Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
195
1999/10/26
14
:
14
:
43
grubba
Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
336:
void f_random(INT32 args) { INT_TYPE i;
-
if(sp[-args].type == T_OBJECT)
+
+
if(
args && (
sp[-args].type == T_OBJECT)
)
{ pop_n_elems(args-1); apply(sp[-1].u.object,"_random",0);