lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I think this is the patch to that bug:

* lparser.c:

          ls->fs->freereg -= nexps - nvars;  /* remove extra values */
      }
      else {
+       luaK_setcallreturns(ls->fs, &e, 1);  /* close last expression */
        luaK_storevar(ls->fs, &lh->v, &e);
        return;  /* avoid default */
      }

-- Roberto