From 5527bcb13eae6dc54c483854d80a71612b365b01 Mon Sep 17 00:00:00 2001 From: Kojin Date: Mon, 17 Dec 2018 15:52:15 +0100 Subject: [PATCH] GSdx-debug: Do some casts and fix warnings. --- plugins/GSdx/GSDrawingContext.cpp | 2 +- plugins/GSdx/Renderers/DX11/GSDevice11.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/GSDrawingContext.cpp b/plugins/GSdx/GSDrawingContext.cpp index ae1f758a9f..6fb066bd36 100644 --- a/plugins/GSdx/GSDrawingContext.cpp +++ b/plugins/GSdx/GSDrawingContext.cpp @@ -118,7 +118,7 @@ GIFRegTEX0 GSDrawingContext::GetSizeFixedTEX0(int s_n, const GSVector4& st, bool } #if defined(_DEBUG) && 1 - if(TEX0.TW != tw || TEX0.TH != th) + if((int)TEX0.TW != tw || (int)TEX0.TH != th) { printf("%5d:FixedTEX0 %05x %d %d tw %d=>%d th %d=>%d st (%.0f,%.0f,%.0f,%.0f) uvmax %d,%d wm %d,%d (%d,%d,%d,%d)\n", s_n, diff --git a/plugins/GSdx/Renderers/DX11/GSDevice11.cpp b/plugins/GSdx/Renderers/DX11/GSDevice11.cpp index e3f22295d3..fa2d26e8e4 100644 --- a/plugins/GSdx/Renderers/DX11/GSDevice11.cpp +++ b/plugins/GSdx/Renderers/DX11/GSDevice11.cpp @@ -1229,7 +1229,7 @@ void GSDevice11::PSSetShaderResource(int i, GSTexture* sr) void GSDevice11::PSSetShaderResourceView(int i, ID3D11ShaderResourceView* srv, GSTexture* sr) { - ASSERT(i < m_state.ps_sr_views.size()); + ASSERT(i < (int)m_state.ps_sr_views.size()); if(m_state.ps_sr_views[i] != srv) {