FFI: Fix line info for result conversion errors in callbacks.

This commit is contained in:
Mike Pall
2011-11-25 19:25:44 +01:00
parent 90c445851f
commit b3f16cb64d
2 changed files with 4 additions and 4 deletions

View File

@@ -377,7 +377,7 @@ void LJ_FASTCALL lj_ccallback_leave(CTState *cts, TValue *o)
fn = curr_func(L);
if (isluafunc(fn)) {
GCproto *pt = funcproto(fn);
setcframe_pc(L->cframe, proto_bc(pt)+pt->sizebc);
setcframe_pc(L->cframe, proto_bc(pt)+pt->sizebc+1);
}
callback_conv_result(cts, L, o);
/* Finally drop C frame and continuation frame. */