From 0b1bc6b0b15c049337d3a052f06f390d768bdfa3 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Fri, 16 Oct 2015 17:11:57 +0200 Subject: [PATCH] Fix harmless signed/unsigned comparison warning in Direct2D code Cast D2DERR_RECREATE_TARGET, which is not of HRESULT type, to it to avoid gcc warnings. --- src/msw/graphicsd2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/graphicsd2d.cpp b/src/msw/graphicsd2d.cpp index ce55f1158c..9eb36a11a2 100644 --- a/src/msw/graphicsd2d.cpp +++ b/src/msw/graphicsd2d.cpp @@ -3345,7 +3345,7 @@ void wxD2DContext::Flush() { HRESULT result = m_renderTargetHolder->Flush(); - if (result == D2DERR_RECREATE_TARGET) + if (result == (HRESULT)D2DERR_RECREATE_TARGET) { ReleaseDeviceDependentResources(); }