summaryrefslogtreecommitdiff
path: root/devel/readline/patches/patch-ah
blob: 8609701dd4670f9e7f809d00da8993f6f3e75981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ah,v 1.2 1999/07/13 00:56:13 jlam Exp $

--- chardefs.h.orig	Thu Sep 25 10:59:00 1997
+++ chardefs.h	Tue Jul  6 05:18:58 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)