Explorar o código

FFI: Use correct PC in FFI metamethod error message.

Mike Pall %!s(int64=13) %!d(string=hai) anos
pai
achega
afc17b3c1a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/lj_err.c

+ 1 - 0
src/lj_err.c

@@ -660,6 +660,7 @@ LJ_NOINLINE void lj_err_callermsg(lua_State *L, const char *msg)
 	  frame_func(frame)->c.ffid <= FF_ffi_meta___tostring) {
 	L->base = pframe+1;
 	L->top = frame;
+	setcframe_pc(cframe_raw(L->cframe), frame_contpc(frame));
       }
 #endif
     }