summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index c617fd0..3d6cde6 100644
--- a/eval.c
+++ b/eval.c
@@ -10,7 +10,7 @@ static bool eval_block(Evaluator *ev, Block *b, Type *t, Value *v);
static bool eval_expr(Evaluator *ev, Expression *e, Value *v);
static bool block_enter(Block *b, Statement *stmts, U16 flags);
static void block_exit(Block *b, Statement *stmts);
-static void get_builtin_val(BuiltinVal val, Value *v);
+static Value get_builtin_val(BuiltinVal val);
static void evalr_create(Evaluator *ev, Typer *tr, Allocator *allocr) {
ev->returning = NULL;
@@ -1426,7 +1426,7 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) {
err_print(e->where, "Cannot run C code at compile time.");
return false;
case EXPR_BUILTIN:
- get_builtin_val(e->builtin.which.val, v);
+ *v = get_builtin_val(e->builtin.which.val);
break;
case EXPR_NEW:
/* it's not strictly necessary to do the if here */