changeset 26282:71bdede8afd8 v8.2.3672

patch 8.2.3672: build failure with unsigned char Commit: https://github.com/vim/vim/commit/71b36206be14c3b6334765d44a38d413eca751c7 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 25 13:26:19 2021 +0000 patch 8.2.3672: build failure with unsigned char Problem: Build failure with unsigned char. Solution: Use int instead of char.
author Bram Moolenaar <Bram@vim.org>
date Thu, 25 Nov 2021 14:30:04 +0100
parents 41076712e8c3
children 3b297148a7c5
files src/version.c src/xxd/xxd.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3672,
+/**/
     3671,
 /**/
     3670,
--- a/src/xxd/xxd.c
+++ b/src/xxd/xxd.c
@@ -253,14 +253,14 @@ error_exit(int ret, char *msg)
 }
 
   static void
-exit_on_ferror(char c, FILE *fpi)
+exit_on_ferror(int c, FILE *fpi)
 {
   if (c == EOF && ferror(fpi))
     perror_exit(2);
 }
 
   static void
-putc_or_die(char c, FILE *fpo)
+putc_or_die(int c, FILE *fpo)
 {
   if (putc(c, fpo) == EOF)
     perror_exit(3);