aboutsummaryrefslogtreecommitdiff
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
parent880ca300e8fb7b432b9d25ed377db2102e4cb63d (diff)
downloadluajit-1ca794e0b071416afdf3f351e0a953029f59eff7.tar.gz
luajit-1ca794e0b071416afdf3f351e0a953029f59eff7.tar.bz2
luajit-1ca794e0b071416afdf3f351e0a953029f59eff7.zip
Fix compiler warnings.
-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}