From 8f913dd74957ef18e144f15b78c3e55893744218 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Thu, 16 Feb 2017 12:54:22 +0100 Subject: lua_tonumber, lua_tointeger, lua_tostring, lua_toboolean --- tests/C/lua_pushinteger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/C') diff --git a/tests/C/lua_pushinteger.c b/tests/C/lua_pushinteger.c index 0c9a49f..da134b6 100644 --- a/tests/C/lua_pushinteger.c +++ b/tests/C/lua_pushinteger.c @@ -12,7 +12,7 @@ int main(void) { lua_pushinteger(L, 10); - printf("L->top(%d): %s\n", lua_gettop(L), luaL_typename(L, lua_gettop(L))); + printf("L->top(%d): type %s, value %ld\n", lua_gettop(L), luaL_typename(L, lua_gettop(L)), lua_tointeger(L, -1)); lua_close(L); -- cgit v1.2.3-54-g00ecf