0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.1.1273: compiler warning in direct write code

Problem:    Compiler warning in direct write code.
Solution:   Add a type cast.
This commit is contained in:
Bram Moolenaar 2019-05-05 13:20:02 +02:00
parent 711f02da65
commit f653a6bcff
2 changed files with 3 additions and 1 deletions

View File

@ -949,7 +949,7 @@ DWriteContext::SetDrawingMode(DrawingMode mode)
if (mDrawing) if (mDrawing)
{ {
hr = mRT->EndDraw(); hr = mRT->EndDraw();
if (hr == D2DERR_RECREATE_TARGET) if (hr == (HRESULT)D2DERR_RECREATE_TARGET)
{ {
hr = S_OK; hr = S_OK;
DiscardDeviceResources(); DiscardDeviceResources();

View File

@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1273,
/**/ /**/
1272, 1272,
/**/ /**/