1. jas43
  2. aotus

Commits

Harald Klimach  committed 35b48a1

4. Patch for Lua 5.2.0
Wrong handling of 'nCcalls' in coroutines.

  • Participants
  • Parent commits 44312cb
  • Branches default

Comments (0)

Files changed (1)

File external/lua-5.2.0/src/ldo.c

View file
  • Ignore whitespace
   int n;
   lua_assert(ci->u.c.k != NULL);  /* must have a continuation */
   lua_assert(L->nny == 0);
-  /* finish 'luaD_call' */
-  L->nCcalls--;
   /* finish 'lua_callk' */
   adjustresults(L, ci->nresults);
   /* call continuation function */
         api_checknelems(L, n);
         firstArg = L->top - n;  /* yield results come from continuation */
       }
-      L->nCcalls--;  /* finish 'luaD_call' */
       luaD_poscall(L, firstArg);  /* finish 'luaD_precall' */
     }
     unroll(L, NULL);