diff src/gui_w32.c @ 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 7ae2396cef62
children 9a7d98e11954
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 == ' ')