From ad7acf6282c2a8b00ff6231b83c2d5b98a596adb Mon Sep 17 00:00:00 2001 From: sommerfe Date: Tue, 23 Feb 1999 18:56:59 +0000 Subject: Fix for arm (and anywhere else chars are unsigned by default) (should not cause problems on systems with signed chars.) --- devel/readline/patches/patch-ah | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 devel/readline/patches/patch-ah (limited to 'devel/readline') diff --git a/devel/readline/patches/patch-ah b/devel/readline/patches/patch-ah new file mode 100644 index 00000000000..0f8cb5102e0 --- /dev/null +++ b/devel/readline/patches/patch-ah @@ -0,0 +1,13 @@ +$NetBSD: patch-ah,v 1.1 1999/02/23 18:56:59 sommerfe Exp $ + +--- chardefs.h.~1~ Thu Sep 25 10:59:00 1997 ++++ chardefs.h Tue Feb 23 13:47:23 1999 +@@ -51,7 +51,7 @@ + #define meta_character_bit 0x080 /* x0000000, must be on. */ + #define largest_char 255 /* Largest character value. */ + +-#define CTRL_CHAR(c) ((c) < control_character_threshold && (c) >= 0) ++#define CTRL_CHAR(c) (((unsigned)(c)) < control_character_threshold) + #define META_CHAR(c) ((c) > meta_character_threshold && (c) <= largest_char) + + #define CTRL(c) ((c) & control_character_mask) -- cgit v1.2.3