diff options
Diffstat (limited to 'ldblib.c')
-rw-r--r-- | ldblib.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -440,10 +440,7 @@ static int db_traceback (lua_State *L) { | |||
440 | static int db_setcstacklimit (lua_State *L) { | 440 | static int db_setcstacklimit (lua_State *L) { |
441 | int limit = (int)luaL_checkinteger(L, 1); | 441 | int limit = (int)luaL_checkinteger(L, 1); |
442 | int res = lua_setcstacklimit(L, limit); | 442 | int res = lua_setcstacklimit(L, limit); |
443 | if (res == 0) | 443 | lua_pushinteger(L, res); |
444 | lua_pushboolean(L, 0); | ||
445 | else | ||
446 | lua_pushinteger(L, res); | ||
447 | return 1; | 444 | return 1; |
448 | } | 445 | } |
449 | 446 | ||