From 71b36206be14c3b6334765d44a38d413eca751c7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 25 Nov 2021 13:26:19 +0000 Subject: [PATCH] patch 8.2.3672: build failure with unsigned char Problem: Build failure with unsigned char. Solution: Use int instead of char. --- src/version.c | 2 ++ src/xxd/xxd.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/version.c b/src/version.c index 0686cfab9..d1004bb1e 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3672, /**/ 3671, /**/ diff --git a/src/xxd/xxd.c b/src/xxd/xxd.c index c7b166e81..ad0c72ff6 100644 --- 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); -- 2.50.1