From b5d04a5e0fbd656fc9c1c6b8d9fd799d7675cefd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 1 Apr 2020 21:48:02 +0200 Subject: [PATCH] :bug: Fix ptr assign --- src/lib/ptr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ptr.c b/src/lib/ptr.c index 86aee9b0..152799a1 100644 --- a/src/lib/ptr.c +++ b/src/lib/ptr.c @@ -16,9 +16,9 @@ static OP_CHECK(opck_ptr_assign) { const Exp_Binary* bin = (Exp_Binary*)data; - const m_str access = exp_access(exp_self(bin)); + const m_str access = exp_access(exp_self(bin->rhs)); if(access) - ERR_N(exp_self(bin)->pos, _("left side operand is %s"), access); + ERR_N(exp_self(bin)->pos, _("right side operand is %s"), access); exp_setvar(bin->lhs, 1); Type t = bin->lhs->info->type; do { -- 2.43.0