summaryrefslogtreecommitdiff
path: root/lib/libedit/map.c
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>1998-03-30 01:30:14 +0000
committermrg <mrg@NetBSD.org>1998-03-30 01:30:14 +0000
commit53b970783b88e970c3dd04447f7affbf480473ed (patch)
treec2cb13d44bea7aae9cffc70aa6db01dc611fa9b5 /lib/libedit/map.c
parent512c5be5af6c105d60a13a1a230ca962862b91bb (diff)
use int rather than char as an array index.
Diffstat (limited to 'lib/libedit/map.c')
-rw-r--r--lib/libedit/map.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libedit/map.c b/lib/libedit/map.c
index a993bcb38d4..70a94fbcea6 100644
--- a/lib/libedit/map.c
+++ b/lib/libedit/map.c
@@ -1,4 +1,4 @@
-/* $NetBSD: map.c,v 1.5 1998/02/03 19:12:40 perry Exp $ */
+/* $NetBSD: map.c,v 1.6 1998/03/30 01:30:14 mrg Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)map.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: map.c,v 1.5 1998/02/03 19:12:40 perry Exp $");
+__RCSID("$NetBSD: map.c,v 1.6 1998/03/30 01:30:14 mrg Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -1000,7 +1000,7 @@ map_init_meta(el)
key_add(el, buf, key_map_cmd(el, (int) map[i]), XK_CMD);
break;
}
- map[buf[0]] = ED_SEQUENCE_LEAD_IN;
+ map[(int)buf[0]] = ED_SEQUENCE_LEAD_IN;
}