Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/readline Fix a "comparison is always true...



details:   https://anonhg.NetBSD.org/src/rev/3e547c7e22d3
branches:  trunk
changeset: 526582:3e547c7e22d3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon May 06 18:25:46 2002 +0000

description:
Fix a "comparison is always true" warning from gcc-current by passing
the int version of the chatacter to META_CHAR() (like other parts of
readline do).

diffstat:

 gnu/dist/toolchain/readline/display.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7709a9ce805e -r 3e547c7e22d3 gnu/dist/toolchain/readline/display.c
--- a/gnu/dist/toolchain/readline/display.c     Mon May 06 18:22:11 2002 +0000
+++ b/gnu/dist/toolchain/readline/display.c     Mon May 06 18:25:46 2002 +0000
@@ -1188,7 +1188,7 @@
 
   uc = (unsigned char)c;
 
-  if (META_CHAR (uc))
+  if (META_CHAR (c))
     return ((_rl_output_meta_chars == 0) ? 4 : 1);
 
   if (uc == '\t')



Home | Main Index | Thread Index | Old Index