]> granicus.if.org Git - vim/commitdiff
patch 8.2.0727: MS-Windows: new gcc compiler does not support scanf format v8.2.0727
authorBram Moolenaar <Bram@vim.org>
Sun, 10 May 2020 11:42:43 +0000 (13:42 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 10 May 2020 11:42:43 +0000 (13:42 +0200)
Problem:    MS-Windows: new gcc compiler does not support scanf format.
Solution:   Use "%ll" instead of "%I". (Ken Takata)

src/version.c
src/vim.h

index ef7dedb98007558a83a84e20f325038f447ce304..55b865409ea74784285679855984d146bebe54d0 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    727,
 /**/
     726,
 /**/
index c84d5a596cab430e2ec24c568b9b5e638a727242..9e4c61db37c3aca50d8e6aaa051b2b752fdfbd62 100644 (file)
--- a/src/vim.h
+++ b/src/vim.h
@@ -340,9 +340,9 @@ typedef unsigned int        int_u;
 #ifdef _WIN64
 typedef unsigned __int64       long_u;
 typedef                 __int64        long_i;
-# define SCANF_HEX_LONG_U       "%Ix"
-# define SCANF_DECIMAL_LONG_U   "%Iu"
-# define PRINTF_HEX_LONG_U      "0x%Ix"
+# define SCANF_HEX_LONG_U       "%llx"
+# define SCANF_DECIMAL_LONG_U   "%llu"
+# define PRINTF_HEX_LONG_U      "0x%llx"
 #else
   // Microsoft-specific. The __w64 keyword should be specified on any typedefs
   // that change size between 32-bit and 64-bit platforms.  For any such type,