fix w4018

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
pappeste
2021-06-18 17:45:51 -07:00
committed by Esteban Papp
parent 97354ce90a
commit 10f950b726
33 changed files with 72 additions and 73 deletions
@@ -116,9 +116,9 @@ namespace UnitTest
size_t value = 0;
AZStd::hash_combine(value, seed);
for (int x = 0; x < width; ++x)
for (AZ::u32 x = 0; x < width; ++x)
{
for (int y = 0; y < height; ++y)
for (AZ::u32 y = 0; y < height; ++y)
{
AZStd::hash_combine(value, x);
AZStd::hash_combine(value, y);
@@ -141,9 +141,9 @@ namespace UnitTest
const AZ::u8 pixelValue = 255;
// Image data should be stored inverted on the y axis relative to our engine, so loop backwards through y.
for (int y = height - 1; y >= 0; --y)
for (int y = static_cast<int>(height) - 1; y >= 0; --y)
{
for (int x = 0; x < width; ++x)
for (AZ::u32 x = 0; x < width; ++x)
{
if ((x == pixelX) && (y == pixelY))
{