diff options
Diffstat (limited to 'nest/cmds.c')
-rw-r--r-- | nest/cmds.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nest/cmds.c b/nest/cmds.c index ca601ef2..0c89d20f 100644 --- a/nest/cmds.c +++ b/nest/cmds.c @@ -97,9 +97,8 @@ cmd_show_memory(void) void cmd_eval(struct f_inst *expr) { - struct f_val v = f_eval(expr, this_cli->parser_pool); - - if (v.type == T_RETURN) + struct f_val v; + if (f_eval(expr, this_cli->parser_pool, &v) > F_RETURN) { cli_msg(8008, "runtime error"); return; |