summaryrefslogtreecommitdiff
path: root/src/luajit.c
diff options
context:
space:
mode:
authorMike Pall <mike>2014-03-24 09:41:33 +0100
committerMike Pall <mike>2014-03-24 09:41:33 +0100
commit1ca794e0b071416afdf3f351e0a953029f59eff7 (patch)
treecf51f42c30394196580b6e737b3b0930e892d7ab /src/luajit.c
parent880ca300e8fb7b432b9d25ed377db2102e4cb63d (diff)
downloadluajit2-1ca794e0b071416afdf3f351e0a953029f59eff7.tar.gz
Fix compiler warnings.
Diffstat (limited to 'src/luajit.c')
-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)
lua_concat(L, 2);
if (lua_pcall(L, 1, 1, 0)) {
const char *msg = lua_tostring(L, -1);
- if (msg && !strncmp(msg, "module ", 7)) {
- err:
- l_message(progname,
- "unknown luaJIT command or jit.* modules not installed");
- return 1;
- } else {
- return report(L, 1);
- }
+ if (msg && !strncmp(msg, "module ", 7))
+ goto nomodule;
+ return report(L, 1);
}
lua_getfield(L, -1, "start");
- if (lua_isnil(L, -1)) goto err;
+ if (lua_isnil(L, -1)) {
+ nomodule:
+ l_message(progname,
+ "unknown luaJIT command or jit.* modules not installed");
+ return 1;
+ }
lua_remove(L, -2); /* Drop module table. */
return 0;
}