aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luajit.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/luajit.c b/src/luajit.c
index 4cccf04e..e0343439 100644
--- a/src/luajit.c
+++ b/src/luajit.c
@@ -301,17 +301,17 @@ static int loadjitmodule(lua_State *L)
301 lua_concat(L, 2); 301 lua_concat(L, 2);
302 if (lua_pcall(L, 1, 1, 0)) { 302 if (lua_pcall(L, 1, 1, 0)) {
303 const char *msg = lua_tostring(L, -1); 303 const char *msg = lua_tostring(L, -1);
304 if (msg && !strncmp(msg, "module ", 7)) { 304 if (msg && !strncmp(msg, "module ", 7))
305 err: 305 goto nomodule;
306 l_message(progname, 306 return report(L, 1);
307 "unknown luaJIT command or jit.* modules not installed");
308 return 1;
309 } else {
310 return report(L, 1);
311 }
312 } 307 }
313 lua_getfield(L, -1, "start"); 308 lua_getfield(L, -1, "start");
314 if (lua_isnil(L, -1)) goto err; 309 if (lua_isnil(L, -1)) {
310 nomodule:
311 l_message(progname,
312 "unknown luaJIT command or jit.* modules not installed");
313 return 1;
314 }
315 lua_remove(L, -2); /* Drop module table. */ 315 lua_remove(L, -2); /* Drop module table. */
316 return 0; 316 return 0;
317} 317}