Merge branch 'development' into cmake/linux_fix_warn_unused

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-20 14:51:35 -07:00
241 changed files with 5654 additions and 5352 deletions
@@ -111,7 +111,7 @@ namespace ScriptEvents
{
// Iterate from end of parameters and count the number of consecutive valid BehaviorValue objects
size_t numDefaultArguments = 0;
for (size_t i = GetNumArguments() - 1; i >= 0 && GetDefaultValue(i); --i, ++numDefaultArguments)
for (int i = static_cast<int>(GetNumArguments()) - 1; i >= 0 && GetDefaultValue(static_cast<size_t>(i)); --i, ++numDefaultArguments)
{
}
return GetNumArguments() - numDefaultArguments;
@@ -121,7 +121,7 @@ namespace ScriptEvents
{
// Iterate from end of parameters and count the number of consecutive valid BehaviorValue objects
size_t numDefaultArguments = 0;
for (size_t i = GetNumArguments() - 1; i >= 0 && GetDefaultValue(i); --i, ++numDefaultArguments)
for (int i = static_cast<int>(GetNumArguments()) - 1; i >= 0 && GetDefaultValue(static_cast<size_t>(i)); --i, ++numDefaultArguments)
{
}
return GetNumArguments() - numDefaultArguments;