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 2f4a8bc..65ada12 100644
--- a/eval.c
+++ b/eval.c
@@ -1180,7 +1180,7 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) {
}
} break;
case EXPR_EACH: {
- EachExpr *ea = &e->each;
+ EachExpr *ea = e->each;
if (ea->flags & EACH_IS_RANGE) {
Value from, to;
Value stepval;
@@ -1316,7 +1316,7 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) {
val_cast(&casted, &e->cast.expr->type, v, &e->cast.type);
} break;
case EXPR_FN:
- v->fn = &e->fn;
+ v->fn = e->fn;
break;
case EXPR_IDENT: {
IdentDecl *idecl = ident_decl(e->ident);