diff src/gui_dwrite.cpp @ 16539:563163ec0244 v8.1.1273

patch 8.1.1273: compiler warning in direct write code commit https://github.com/vim/vim/commit/f653a6bcff48161b56eeb3a584011aab6665f1e7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 5 13:20:02 2019 +0200 patch 8.1.1273: compiler warning in direct write code Problem: Compiler warning in direct write code. Solution: Add a type cast.
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 May 2019 13:30:05 +0200
parents e8d8650fa625
children 26824776adf6
line wrap: on
line diff
--- a/src/gui_dwrite.cpp
+++ b/src/gui_dwrite.cpp
@@ -949,7 +949,7 @@ DWriteContext::SetDrawingMode(DrawingMod
 	    if (mDrawing)
 	    {
 		hr = mRT->EndDraw();
-		if (hr == D2DERR_RECREATE_TARGET)
+		if (hr == (HRESULT)D2DERR_RECREATE_TARGET)
 		{
 		    hr = S_OK;
 		    DiscardDeviceResources();