aboutsummaryrefslogtreecommitdiff
path: root/src/lj_ccallback.c
diff options
context:
space:
mode:
authorMike Pall <mike>2011-11-25 19:25:44 +0100
committerMike Pall <mike>2011-11-25 19:35:58 +0100
commitb3f16cb64d8eef247d3763eb90ece38810f29781 (patch)
treee66dcd807fc5dab764f5cfdf5bdeb820405cdcca /src/lj_ccallback.c
parent90c445851ffb697adc680c4ffd735d940536cfa5 (diff)
downloadluajit-b3f16cb64d8eef247d3763eb90ece38810f29781.tar.gz
luajit-b3f16cb64d8eef247d3763eb90ece38810f29781.tar.bz2
luajit-b3f16cb64d8eef247d3763eb90ece38810f29781.zip
FFI: Fix line info for result conversion errors in callbacks.
Diffstat (limited to 'src/lj_ccallback.c')
-rw-r--r--src/lj_ccallback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_ccallback.c b/src/lj_ccallback.c
index 597b3c11..f8d95d39 100644
--- a/src/lj_ccallback.c
+++ b/src/lj_ccallback.c
@@ -377,7 +377,7 @@ void LJ_FASTCALL lj_ccallback_leave(CTState *cts, TValue *o)
377 fn = curr_func(L); 377 fn = curr_func(L);
378 if (isluafunc(fn)) { 378 if (isluafunc(fn)) {
379 GCproto *pt = funcproto(fn); 379 GCproto *pt = funcproto(fn);
380 setcframe_pc(L->cframe, proto_bc(pt)+pt->sizebc); 380 setcframe_pc(L->cframe, proto_bc(pt)+pt->sizebc+1);
381 } 381 }
382 callback_conv_result(cts, L, o); 382 callback_conv_result(cts, L, o);
383 /* Finally drop C frame and continuation frame. */ 383 /* Finally drop C frame and continuation frame. */