From 2288dd924eb97c917d5f749b8900e86303c33e4d Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 6 Feb 2020 00:58:30 +0100 Subject: [PATCH] [d3d9] Fix GCC warnings for unsigned->signed comparisons --- src/d3d9/d3d9_util.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/d3d9/d3d9_util.h b/src/d3d9/d3d9_util.h index 2ef074cc..43d8e456 100644 --- a/src/d3d9/d3d9_util.h +++ b/src/d3d9/d3d9_util.h @@ -251,10 +251,10 @@ namespace dxvk { // Only bother checking x, y as we don't have 3D blits. return offsets[1].x < offsets[0].x || offsets[1].y < offsets[0].y || - offsets[0].x < 0 || - offsets[0].y < 0 || - offsets[1].x > extent.width || - offsets[1].y > extent.height; + offsets[0].x < 0 || + offsets[0].y < 0 || + uint32_t(offsets[1].x) > extent.width || + uint32_t(offsets[1].y) > extent.height; } enum D3D9TextureStageStateTypes : uint32_t