summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index a0de141..bafa6fc 100644
--- a/eval.c
+++ b/eval.c
@@ -748,8 +748,7 @@ static Status eval_ptr_to_struct_field(Evaluator *ev, Expression *dot_expr, void
if (!eval_address_of(ev, dot_expr->binary.lhs, &ptr))
return false;
/* access struct data */
- Identifier ident = dot_expr->binary.rhs->ident;
- assert(ident_eq_str(ident, "data"));
+ assert(ident_eq_str(dot_expr->binary.rhs->ident, "data"));
*p = &((Slice *)ptr)->data;
} else {
void *ptr;