From: Bram Moolenaar Date: Sun, 5 May 2019 11:20:02 +0000 (+0200) Subject: patch 8.1.1273: compiler warning in direct write code X-Git-Tag: v8.1.1273 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f653a6bcff48161b56eeb3a584011aab6665f1e7;p=vim patch 8.1.1273: compiler warning in direct write code Problem: Compiler warning in direct write code. Solution: Add a type cast. --- diff --git a/src/gui_dwrite.cpp b/src/gui_dwrite.cpp index 3c477d052..8767dc1af 100644 --- a/src/gui_dwrite.cpp +++ b/src/gui_dwrite.cpp @@ -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(); diff --git a/src/version.c b/src/version.c index db12cd391..c8038f36f 100644 --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1273, /**/ 1272, /**/