diff options
author | Mike Pall <mike> | 2011-11-25 19:25:44 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-11-25 19:35:58 +0100 |
commit | b3f16cb64d8eef247d3763eb90ece38810f29781 (patch) | |
tree | e66dcd807fc5dab764f5cfdf5bdeb820405cdcca /src/lj_ccallback.c | |
parent | 90c445851ffb697adc680c4ffd735d940536cfa5 (diff) | |
download | luajit-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.c | 2 |
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. */ |