fix them all

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
pappeste
2021-06-25 18:33:22 -07:00
committed by Esteban Papp
parent f02957c140
commit 58f8b563d0
22 changed files with 28 additions and 29 deletions
@@ -90,7 +90,7 @@ namespace ImageProcessingAtom
for (i; i < ePixelFormat_Count; i++)
{
const PixelFormatInfo* info = CPixelFormats::GetInstance().GetPixelFormatInfo((EPixelFormat)i);
if (info->d3d10Format == dxgiFormat)
if (static_cast<AZ::u32>(info->d3d10Format) == dxgiFormat)
{
eFormat = (EPixelFormat)i;
break;
@@ -509,7 +509,7 @@ namespace ImageProcessingAtom
for (i; i < ePixelFormat_Count; i++)
{
const PixelFormatInfo* info = CPixelFormats::GetInstance().GetPixelFormatInfo((EPixelFormat)i);
if (info->d3d10Format == dxgiFormat)
if (static_cast<uint32_t>(info->d3d10Format) == dxgiFormat)
{
format = (EPixelFormat)i;
break;