]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.1679: compiler warning for printf format v8.0.1679
authorBram Moolenaar <Bram@vim.org>
Sun, 8 Apr 2018 14:34:22 +0000 (16:34 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 8 Apr 2018 14:34:22 +0000 (16:34 +0200)
Problem:    Compiler warning for printf format. (Chdiza)
Solution:   Change type to "long long". (closes #2791)

src/ops.c
src/version.c

index 8b895d86371ec05ee675a7b756665842c4ccb41e..b1c1d369350a57df5988e758e3d025e681d6502e 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -7555,7 +7555,7 @@ cursor_pos_info(dict_T *dict)
        bom_count = bomb_size();
        if (bom_count > 0)
            vim_snprintf((char *)IObuff + STRLEN(IObuff), IOSIZE,
-                                             _("(+%ld for BOM)"), bom_count);
+                                  _("(+%lld for BOM)"), (long long)bom_count);
 #endif
        if (dict == NULL)
        {
index c7e47f51b278a8ebf7cf5c531f98ddcd985876b0..a044f09bc1fff8bd681a1bf4234962272c66d1a4 100644 (file)
@@ -762,6 +762,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1679,
 /**/
     1678,
 /**/