enable warning 4296: 'operator': expression is always false
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -34,7 +34,7 @@ namespace ScriptCanvas
|
||||
{
|
||||
length = AZ::GetClamp<AZ::u32>(length, 0, aznumeric_cast<AZ::u32>(sourceString.size()));
|
||||
|
||||
if (length == 0 || index < 0 || index >= sourceString.size())
|
||||
if (length == 0 || index >= sourceString.size())
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user