diff options
Diffstat (limited to 'tests/testmod.c')
-rw-r--r-- | tests/testmod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testmod.c b/tests/testmod.c index 9232682..cd56e76 100644 --- a/tests/testmod.c +++ b/tests/testmod.c | |||
@@ -152,7 +152,8 @@ static int test_tointeger (lua_State *L) { | |||
152 | lua_pushnil(L); | 152 | lua_pushnil(L); |
153 | else | 153 | else |
154 | lua_pushinteger(L, n); | 154 | lua_pushinteger(L, n); |
155 | return 1; | 155 | lua_pushinteger(L, lua_tointeger(L, 1)); |
156 | return 2; | ||
156 | } | 157 | } |
157 | 158 | ||
158 | static int test_len (lua_State *L) { | 159 | static int test_len (lua_State *L) { |