diff options
author | Mike Pall <mike> | 2011-04-12 19:12:29 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-04-12 19:13:11 +0200 |
commit | fa5cd010e8e28c7fe2338d0fdd538e95ddd88bcc (patch) | |
tree | 72aadf3527f4a65bde320f8f7b979b33b559b713 /src/lj_api.c | |
parent | 23f847f4ed0464adf62d63eafa5c759c03793f83 (diff) | |
download | luajit2-fa5cd010e8e28c7fe2338d0fdd538e95ddd88bcc.tar.gz |
Add support for tailcalls from internal C functions.
PPC: Fix __call metamethod for tailcalls.
Diffstat (limited to 'src/lj_api.c')
-rw-r--r-- | src/lj_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_api.c b/src/lj_api.c index 4942c1d6..3a8448b5 100644 --- a/src/lj_api.c +++ b/src/lj_api.c @@ -1104,7 +1104,7 @@ LUA_API int lua_yield(lua_State *L, int nresults) setcont(top+1, lj_cont_hook); setframe_pc(top+1, cframe_pc(cf)-1); setframe_gc(top+2, obj2gco(L)); - top[2].fr.tp.ftsz = (int)((char *)(top+3)-(char *)L->base)+FRAME_CONT; + setframe_ftsz(top+2, (int)((char *)(top+3)-(char *)L->base)+FRAME_CONT); L->top = L->base = top+3; } #if LJ_TARGET_X64 |