From: Jérémie Astor Date: Wed, 1 Apr 2020 19:48:02 +0000 (+0200) Subject: :bug: Fix ptr assign X-Git-Tag: nightly~1721 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=b5d04a5e0fbd656fc9c1c6b8d9fd799d7675cefd;p=gwion.git :bug: Fix ptr assign --- 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 {