]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix ptr assign
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Wed, 1 Apr 2020 19:48:02 +0000 (21:48 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Wed, 1 Apr 2020 19:48:02 +0000 (21:48 +0200)
src/lib/ptr.c

index 86aee9b0e0eecde1282e8078d147f944debfd4c0..152799a1299795a10a461d16e0c1ab09d66ce6d8 100644 (file)
@@ -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 {