diff options
Diffstat (limited to 'primedev/squirrel')
-rw-r--r-- | primedev/squirrel/squirrel.cpp | 4 | ||||
-rw-r--r-- | primedev/squirrel/squirrel.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/primedev/squirrel/squirrel.cpp b/primedev/squirrel/squirrel.cpp index 43e43398..affedebb 100644 --- a/primedev/squirrel/squirrel.cpp +++ b/primedev/squirrel/squirrel.cpp @@ -659,7 +659,7 @@ template <ScriptContext context> void SquirrelManager<context>::ProcessMessageBu pushobject(m_pSQVM->sqvm, &functionobj); // Push the function object pushroottable(m_pSQVM->sqvm); - int argsAmount = message.args.size(); + size_t argsAmount = message.args.size(); if (message.isExternal && message.externalFunc != NULL) { @@ -674,7 +674,7 @@ template <ScriptContext context> void SquirrelManager<context>::ProcessMessageBu } } - _call(m_pSQVM->sqvm, argsAmount); + _call(m_pSQVM->sqvm, (SQInteger)argsAmount); } } diff --git a/primedev/squirrel/squirrel.h b/primedev/squirrel/squirrel.h index a4932044..17f4186d 100644 --- a/primedev/squirrel/squirrel.h +++ b/primedev/squirrel/squirrel.h @@ -399,7 +399,7 @@ public: v(); } - return _call(m_pSQVM->sqvm, functionVector.size()); + return _call(m_pSQVM->sqvm, (SQInteger)functionVector.size()); } #pragma endregion @@ -470,7 +470,7 @@ template <ScriptContext context, typename T> requires (std::convertible_to<T, std::string> || std::is_constructible_v<std::string, T>) inline VoidFunction SQMessageBufferPushArg(T& arg) { auto converted = std::string(arg); - return [converted]{ g_pSquirrel<context>->pushstring(g_pSquirrel<context>->m_pSQVM->sqvm, converted.c_str(), converted.length()); }; + return [converted]{ g_pSquirrel<context>->pushstring(g_pSquirrel<context>->m_pSQVM->sqvm, converted.c_str(), (int)converted.length()); }; } // Assets template <ScriptContext context> |