diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-25 13:26:19 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-25 13:26:19 +0000 |
commit | 71b36206be14c3b6334765d44a38d413eca751c7 (patch) | |
tree | 03628e2ff8d6aa0be904d272ade32514106221d0 /src/xxd | |
parent | 34c20ff85b87be587ea5d0398812441b502ee6a5 (diff) | |
download | vim-git-71b36206be14c3b6334765d44a38d413eca751c7.tar.gz |
patch 8.2.3672: build failure with unsigned charv8.2.3672
Problem: Build failure with unsigned char.
Solution: Use int instead of char.
Diffstat (limited to 'src/xxd')
-rw-r--r-- | src/xxd/xxd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |