commit | 5fa4d448fb717874b6619bcda62e42190702997c | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jan 10 13:25:55 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jan 10 13:25:55 2016 +0100 |
tree | ede8c520b57147dfd48d060ec71e426d5462bf1d | |
parent | 28fb79db6b52d1154e8dc63d227673648c2fce15 [diff] [blame] |
patch 7.4.1074 Problem: Warning from VX2015 compiler. Solution: Add a type cast. (Mike Williams)
diff --git a/src/gui_dwrite.cpp b/src/gui_dwrite.cpp index d4c43a3..08b81c4 100644 --- a/src/gui_dwrite.cpp +++ b/src/gui_dwrite.cpp
@@ -686,7 +686,7 @@ if (SUCCEEDED(hr)) { - DWRITE_TEXT_RANGE textRange = { 0, len }; + DWRITE_TEXT_RANGE textRange = { 0, (UINT32)len }; textLayout->SetFontWeight(mFontWeight, textRange); textLayout->SetFontStyle(mFontStyle, textRange); }