summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 5385771..feb6796 100644
--- a/eval.c
+++ b/eval.c
@@ -1126,7 +1126,7 @@ static Status eval_expr(Evaluator *ev, Expression *e, Value *v) {
eval_unary_op_nums_only(-);
} break;
case UNARY_NOT:
- v->boolv = !val_truthiness(*v, &e->unary.of->type);
+ v->boolv = !val_truthiness(of, &e->unary.of->type);
break;
case UNARY_DEL:
if (of_type->kind == TYPE_PTR)