From 6b6efccb664e9d9b82e82e9d322f90282cd3c127 Mon Sep 17 00:00:00 2001 From: Peter Ferenc Hajdu Date: Mon, 29 Sep 2014 13:04:48 +0200 Subject: [PATCH] fix tautological compare error --- sol/function_types.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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{};