diff --git a/include/sol/stack_push.hpp b/include/sol/stack_push.hpp index 6640c0a2..80de5b72 100644 --- a/include/sol/stack_push.hpp +++ b/include/sol/stack_push.hpp @@ -657,7 +657,7 @@ namespace sol { namespace stack { #if SOL_IS_ON(SOL_SAFE_STACK_CHECK) luaL_checkstack(L, 1, detail::not_enough_stack_space_generic); #endif // make sure stack doesn't overflow - lua_pushlightuserdata(L, static_cast(l.value)); + lua_pushlightuserdata(L, static_cast(l.value())); return 1; } };