# HG changeset patch # User Bram Moolenaar # Date 1556568004 -7200 # Node ID 045ab97fe3200fe1935db13c69138daba5a43fde # Parent fb8272980df0c1ef47a54c1aed181fc64ee3cf0b patch 8.1.1238: MS-Windows: compiler warning for sprintf() format commit https://github.com/vim/vim/commit/a0e67fc1663c9d5317022ea3bf252e08574c9f6f Author: Bram Moolenaar 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) diff --git a/src/gui_w32.c b/src/gui_w32.c --- 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 == ' ') diff --git a/src/version.c b/src/version.c --- 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,