From eacb5456d974a1daa0f7fdfc50879e17d9cf8339 Mon Sep 17 00:00:00 2001 From: ws Date: Sun, 3 Nov 1996 17:48:17 +0000 Subject: [PATCH] Allow compilation on machines where chars are unsigned --- gnu/usr.bin/gas/expr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/usr.bin/gas/expr.c b/gnu/usr.bin/gas/expr.c index 23480c3cfe87..eb653fe33dd6 100644 --- a/gnu/usr.bin/gas/expr.c +++ b/gnu/usr.bin/gas/expr.c @@ -25,7 +25,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: expr.c,v 1.4 1996/04/01 10:57:35 pk Exp $"; +static char rcsid[] = "$Id: expr.c,v 1.5 1996/11/03 17:48:17 ws Exp $"; #endif #include @@ -740,7 +740,9 @@ segT expr(rank, resultP) register operatorT op_right; register char c_right; +#ifndef __CHAR_UNSIGNED__ know(rank >= 0); +#endif (void) operand(resultP); know(*input_line_pointer != ' '); /* Operand() gobbles spaces. */ c_left = *input_line_pointer; /* Potential operator character. */