From 8cf811bf693015380020d2c3c1ef9f1dafb9cb52 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 24 Mar 2017 11:44:01 +0100 Subject: [PATCH] lua_typename now uses lua_type luawrapper 84c01a4 --- ext/luawrapper/include/LuaContext.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/luawrapper/include/LuaContext.hpp b/ext/luawrapper/include/LuaContext.hpp index 6ee104880e..9416c906c3 100644 --- a/ext/luawrapper/include/LuaContext.hpp +++ b/ext/luawrapper/include/LuaContext.hpp @@ -1626,7 +1626,7 @@ private: const auto& firstElem = Reader::type>::read(state, index); if (!firstElem) - throw WrongTypeException(lua_typename(state, index), typeid(TFirstType)); + throw WrongTypeException(lua_typename(state, lua_type(state, index)), typeid(TFirstType)); Binder binder{ callback, *firstElem }; return readIntoFunction(state, retValueTag, binder, index + 1, othersTags...); @@ -1640,7 +1640,7 @@ private: const auto& firstElem = Reader::type>::read(state, index); if (!firstElem) - throw WrongTypeException(lua_typename(state, index), typeid(TFirstType)); + throw WrongTypeException(lua_typename(state, lua_type(state, index)), typeid(TFirstType)); Binder binder{ callback, *firstElem }; return readIntoFunction(state, retValueTag, binder, index + 1, othersTags...); -- 2.47.2