Skip to content

Commit c84885b

Browse files
committed
fix refactor function call WIP
1 parent 78a3706 commit c84885b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ps_visit_expression.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ bool ps_visit_function_call_random(ps_interpreter *interpreter, ps_interpreter_m
496496
*arg_count = 1;
497497
if (!ps_visit_expression(interpreter, mode, arg1))
498498
TRACE_ERROR("PARAMETER");
499-
if (arg1->type != &ps_system_integer && arg1->type != &ps_system_unsigned)
499+
if (mode==MODE_EXEC&& arg1->type != &ps_system_integer && arg1->type != &ps_system_unsigned)
500500
RETURN_ERROR(PS_ERROR_UNEXPECTED_TYPE);
501501
EXPECT_TOKEN(PS_TOKEN_RIGHT_PARENTHESIS);
502502
result->type = arg1->type;

0 commit comments

Comments
 (0)