From: Jim Meyering Date: Sun, 7 Jan 1996 04:06:41 +0000 (+0000) Subject: (print_esc_char): Change type of argument from char to int to avoid X-Git-Tag: TEXTUTILS-1_14~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d2f218bfff67ad7824b578cd48ed3404ea9202d;p=thirdparty%2Fcoreutils.git (print_esc_char): Change type of argument from char to int to avoid potential promotion problem. --- diff --git a/src/printf.c b/src/printf.c index 4cbbe13456..35eb193192 100644 --- a/src/printf.c +++ b/src/printf.c @@ -71,7 +71,7 @@ static int print_formatted __P ((char *format, int argc, char **argv)); static long xstrtol __P ((char *s)); static unsigned long xstrtoul __P ((char *s)); static void print_direc __P ((char *start, size_t length, int field_width, int precision, char *argument)); -static void print_esc_char __P ((char c)); +static void print_esc_char __P ((int c)); static void print_esc_string __P ((char *str)); static void verify __P ((char *s, char *end)); @@ -314,7 +314,7 @@ print_esc (char *escstart) /* Output a single-character \ escape. */ static void -print_esc_char (char c) +print_esc_char (int c) { switch (c) {