changeset 20343:220312b278a9 v8.2.0727

patch 8.2.0727: MS-Windows: new gcc compiler does not support scanf format Commit: https://github.com/vim/vim/commit/d695ba732de915fc227c1069a7a4e1d5049601bd Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 10 13:42:43 2020 +0200 patch 8.2.0727: MS-Windows: new gcc compiler does not support scanf format Problem: MS-Windows: new gcc compiler does not support scanf format. Solution: Use "%ll" instead of "%I". (Ken Takata)
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 May 2020 13:45:04 +0200
parents 2495ffe31bcc
children 0c989a5ad800
files src/version.c src/vim.h
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    727,
+/**/
     726,
 /**/
     725,
--- 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,