diff --git a/sol/function.hpp b/sol/function.hpp index fcdedc47..ebb730f9 100644 --- a/sol/function.hpp +++ b/sol/function.hpp @@ -42,11 +42,11 @@ private: } void call(types, std::size_t n) { - lua_pcall(state(), n, 0, 0); + lua_pcall(state(), static_cast(n), 0, 0); } void call(types<>, std::size_t n) { - lua_pcall(state(), n, 0, 0); + lua_pcall(state(), static_cast(n), 0, 0); } public: