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
index 1d4e0f7..3914733 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -3129,7 +3129,7 @@
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 == ' ')