]> granicus.if.org Git - vim/commitdiff
patch 8.1.1273: compiler warning in direct write code v8.1.1273
authorBram Moolenaar <Bram@vim.org>
Sun, 5 May 2019 11:20:02 +0000 (13:20 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 5 May 2019 11:20:02 +0000 (13:20 +0200)
Problem:    Compiler warning in direct write code.
Solution:   Add a type cast.

src/gui_dwrite.cpp
src/version.c

index 3c477d0527732c4b11d0aeb5ad139e06e1523630..8767dc1af9c2c1032c1345862f59e4deb4c6c2d7 100644 (file)
@@ -949,7 +949,7 @@ DWriteContext::SetDrawingMode(DrawingMode mode)
            if (mDrawing)
            {
                hr = mRT->EndDraw();
-               if (hr == D2DERR_RECREATE_TARGET)
+               if (hr == (HRESULT)D2DERR_RECREATE_TARGET)
                {
                    hr = S_OK;
                    DiscardDeviceResources();
index db12cd39169cee0baa3b05c3e7e468a2a3e42fa1..c8038f36f48f7fdae145cf2f7317df6b530455b5 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1273,
 /**/
     1272,
 /**/