From 9dfe0ebcca0d96a33cc3ce4bf933161989745c9b Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Mon, 7 Dec 2009 15:32:46 +0100 Subject: [PATCH] Fix class_info() calling lua_typename() with stack index. lua_typename() should be called with a type index, not a stack index. --- src/class_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class_info.cpp b/src/class_info.cpp index d5d4ce8..fea4e1c 100755 --- a/src/class_info.cpp +++ b/src/class_info.cpp @@ -40,7 +40,7 @@ namespace luabind if (!obj) { class_info result; - result.name = lua_typename(L, -1); + result.name = lua_typename(L, lua_type(L, -1)); lua_pop(L, 1); result.methods = newtable(L); result.attributes = newtable(L); -- 2.11.4.GIT