changeset 16468:045ab97fe320 v8.1.1238

patch 8.1.1238: MS-Windows: compiler warning for sprintf() format commit https://github.com/vim/vim/commit/a0e67fc1663c9d5317022ea3bf252e08574c9f6f Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 29 21:46:26 2019 +0200 patch 8.1.1238: MS-Windows: compiler warning for sprintf() format Problem: MS-Windows: compiler warning for sprintf() format. Solution: Change %d to %ld. (Ken Takata)
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Apr 2019 22:00:04 +0200
parents fb8272980df0
children a31e4c1ee3ae
files src/gui_w32.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -3129,7 +3129,7 @@ logfont2name(LOGFONTW lf)
 	if (lf.lfWeight == FW_NORMAL || lf.lfWeight == FW_BOLD)
 	    sprintf((char *)p, "%s:h%d", font_name, points);
 	else
-	    sprintf((char *)p, "%s:h%d:W%d", font_name, points, lf.lfWeight);
+	    sprintf((char *)p, "%s:h%d:W%ld", font_name, points, lf.lfWeight);
 	while (*p)
 	{
 	    if (*p == ' ')
--- 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 */
 /**/
+    1238,
+/**/
     1237,
 /**/
     1236,