# HG changeset patch # User Bram Moolenaar # Date 1557055805 -7200 # Node ID 563163ec024489dadaac0007a4b38af392124900 # Parent cb7c468eae134b1ff8c59f52ef80b4d01ef4d2f3 patch 8.1.1273: compiler warning in direct write code commit https://github.com/vim/vim/commit/f653a6bcff48161b56eeb3a584011aab6665f1e7 Author: Bram Moolenaar 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. diff --git a/src/gui_dwrite.cpp b/src/gui_dwrite.cpp --- 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(); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -768,6 +768,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1273, +/**/ 1272, /**/ 1271,