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 aa17e5b..0a21c10 100644
--- a/eval.c
+++ b/eval.c
@@ -871,7 +871,7 @@ static bool eval_expr(Evaluator *ev, Expression *e, Value *v) {
return false;
}
void *ptr1, *ptr2;
- if (to < from) {
+ if (from < to) {
if (!eval_val_ptr_at_index(ev, e->where, &ofv, from, of_type, &s->from->type, &ptr1, NULL))
return false;
if (!eval_val_ptr_at_index(ev, e->where, &ofv, to, of_type, &s->to->type, &ptr2, NULL))