diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index f2236011..463597e6 100644 --- a/single/sol/sol.hpp +++ b/single/sol/sol.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2017-10-02 21:33:04.936340 UTC -// This header was generated with sol v2.18.4 (revision 73484bf) +// Generated 2017-10-03 12:11:17.678787 UTC +// This header was generated with sol v2.18.4 (revision 22d9905) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -8315,7 +8315,8 @@ namespace stack { struct getter> { static light get(lua_State* L, int index, record& tracking) { tracking.use(1); - return light(static_cast(lua_touserdata(L, index))); + void* memory = lua_touserdata(L, index); + return light(static_cast(memory)); } }; @@ -8323,7 +8324,9 @@ namespace stack { struct getter> { static std::add_lvalue_reference_t get(lua_State* L, int index, record& tracking) { tracking.use(1); - return *static_cast*>(lua_touserdata(L, index)); + void* memory = lua_touserdata(L, index); + memory = detail::align_user(memory); + return *static_cast*>(); } }; @@ -8331,7 +8334,9 @@ namespace stack { struct getter> { static T* get(lua_State* L, int index, record& tracking) { tracking.use(1); - return static_cast(lua_touserdata(L, index)); + void* memory = lua_touserdata(L, index); + memory = detail::align_user(memory); + return static_cast(memory); } }; diff --git a/sol/stack_get.hpp b/sol/stack_get.hpp index 7ac9093b..a539b20e 100644 --- a/sol/stack_get.hpp +++ b/sol/stack_get.hpp @@ -372,7 +372,8 @@ namespace stack { struct getter> { static light get(lua_State* L, int index, record& tracking) { tracking.use(1); - return light(static_cast(lua_touserdata(L, index))); + void* memory = lua_touserdata(L, index); + return light(static_cast(memory)); } }; @@ -380,7 +381,9 @@ namespace stack { struct getter> { static std::add_lvalue_reference_t get(lua_State* L, int index, record& tracking) { tracking.use(1); - return *static_cast*>(lua_touserdata(L, index)); + void* memory = lua_touserdata(L, index); + memory = detail::align_user(memory); + return *static_cast*>(); } }; @@ -388,7 +391,9 @@ namespace stack { struct getter> { static T* get(lua_State* L, int index, record& tracking) { tracking.use(1); - return static_cast(lua_touserdata(L, index)); + void* memory = lua_touserdata(L, index); + memory = detail::align_user(memory); + return static_cast(memory); } };