diff --git a/sol/function_types.hpp b/sol/function_types.hpp index 8ea6c390..e28733e7 100644 --- a/sol/function_types.hpp +++ b/sol/function_types.hpp @@ -247,7 +247,7 @@ struct base_function { return base_gc(L, *pudata); } - template + template struct userdata { static int call(lua_State* L) { // Zero-based template parameter, but upvalues start at 1 @@ -259,7 +259,7 @@ struct base_function { } static int gc(lua_State* L) { - for(std::size_t i = 0; i < I; ++i) { + for(int i = 0; i < I; ++i) { upvalue_t up = stack::get(L, i + 1); base_function* obj = static_cast(up.value); std::allocator alloc{};