mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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)
This commit is contained in:
parent
52111f8231
commit
a0e67fc166
@ -3129,7 +3129,7 @@ logfont2name(LOGFONTW lf)
|
|||||||
if (lf.lfWeight == FW_NORMAL || lf.lfWeight == FW_BOLD)
|
if (lf.lfWeight == FW_NORMAL || lf.lfWeight == FW_BOLD)
|
||||||
sprintf((char *)p, "%s:h%d", font_name, points);
|
sprintf((char *)p, "%s:h%d", font_name, points);
|
||||||
else
|
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)
|
while (*p)
|
||||||
{
|
{
|
||||||
if (*p == ' ')
|
if (*p == ' ')
|
||||||
|
@ -767,6 +767,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1238,
|
||||||
/**/
|
/**/
|
||||||
1237,
|
1237,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user