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:
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user