0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1345

Problem:    A few more compiler warnings. (Axel Bender)
Solution:   Add type casts.
This commit is contained in:
Bram Moolenaar
2016-02-17 20:48:19 +01:00
parent 203219048f
commit a87e2c277e
3 changed files with 4 additions and 2 deletions

View File

@@ -1772,7 +1772,7 @@ gui_mch_init(void)
# if !defined(_MSC_VER) || (_MSC_VER < 1400)
/* Define HandleToLong for old MS and non-MS compilers if not defined. */
# ifndef HandleToLong
# define HandleToLong(h) ((long)(h))
# define HandleToLong(h) ((long)(intptr_t)(h))
# endif
# endif
/* set the v:windowid variable */

View File

@@ -2442,7 +2442,7 @@ add_tabline_popup_menu_entry(HMENU pmenu, UINT item_id, char_u *item_text)
info.fMask = MIIM_TYPE | MIIM_ID;
info.wID = item_id;
info.fType = MFT_STRING;
info.dwTypeData = item_text;
info.dwTypeData = (LPTSTR)item_text;
info.cch = (UINT)STRLEN(item_text);
InsertMenuItem(pmenu, item_id, FALSE, &info);
}

View File

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