forked from aniani/vim
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:
@@ -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();
|
||||
|
@@ -767,6 +767,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1273,
|
||||
/**/
|
||||
1272,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user