summaryrefslogtreecommitdiff
path: root/tests/C/lua_pushinteger.c
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-16 12:54:22 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-16 12:55:35 +0100
commit8f913dd74957ef18e144f15b78c3e55893744218 (patch)
treea47ff729efa6474c99d5371ec06272bed47a8417 /tests/C/lua_pushinteger.c
parent573a9c3b39bf1570a575ce3f077a33e752439165 (diff)
downloadfengari-8f913dd74957ef18e144f15b78c3e55893744218.tar.gz
fengari-8f913dd74957ef18e144f15b78c3e55893744218.tar.bz2
fengari-8f913dd74957ef18e144f15b78c3e55893744218.zip
lua_tonumber, lua_tointeger, lua_tostring, lua_toboolean
Diffstat (limited to 'tests/C/lua_pushinteger.c')
-rw-r--r--tests/C/lua_pushinteger.c2
1 files changed, 1 insertions, 1 deletions
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);