Skip to content

Commit ddd7ea5

Browse files
committed
GeanyLua: Fix Lua 5.1 compat function
1 parent e93bacb commit ddd7ea5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

geanylua/glspi_compat.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ void luaL_traceback (lua_State *L, lua_State *L1, const char *msg,
3838
lua_getfield(L, LUA_GLOBALSINDEX, "debug");
3939
if (!lua_istable(L, -1)) {
4040
lua_pop(L, 1);
41-
return 1;
41+
return;
4242
}
4343
lua_getfield(L, -1, "traceback");
4444
if (!lua_isfunction(L, -1)) {
4545
lua_pop(L, 2);
46-
return 1;
46+
return;
4747
}
4848
lua_pushvalue(L, 1);
4949
lua_pushinteger(L, 2);
5050
lua_call(L, 2, 1);
5151

52-
return 1;
52+
return;
5353
}
5454

5555
#endif /* LUA_VERSION_NUM */

0 commit comments

Comments
 (0)