diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_bcread.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lj_bcread.c b/src/lj_bcread.c index 28795e3c..298e6c45 100644 --- a/src/lj_bcread.c +++ b/src/lj_bcread.c | |||
@@ -399,11 +399,7 @@ static int bcread_header(LexState *ls) | |||
399 | if ((flags & BCDUMP_F_FFI)) { | 399 | if ((flags & BCDUMP_F_FFI)) { |
400 | #if LJ_HASFFI | 400 | #if LJ_HASFFI |
401 | lua_State *L = ls->L; | 401 | lua_State *L = ls->L; |
402 | if (!ctype_ctsG(G(L))) { | 402 | ctype_loadffi(L); |
403 | ptrdiff_t oldtop = savestack(L, L->top); | ||
404 | luaopen_ffi(L); /* Load FFI library on-demand. */ | ||
405 | L->top = restorestack(L, oldtop); | ||
406 | } | ||
407 | #else | 403 | #else |
408 | return 0; | 404 | return 0; |
409 | #endif | 405 | #endif |