diff --git a/lib/libedit/map.c b/lib/libedit/map.c index a993bcb38d4c..70a94fbcea64 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; } diff --git a/lib/libedit/tty.c b/lib/libedit/tty.c index 702d48070fe9..2e734d9a25a3 100644 --- a/lib/libedit/tty.c +++ b/lib/libedit/tty.c @@ -1,4 +1,4 @@ -/* $NetBSD: tty.c,v 1.6 1997/10/20 08:07:56 scottr Exp $ */ +/* $NetBSD: tty.c,v 1.7 1998/03/30 01:30:14 mrg Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)tty.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: tty.c,v 1.6 1997/10/20 08:07:56 scottr Exp $"); +__RCSID("$NetBSD: tty.c,v 1.7 1998/03/30 01:30:14 mrg Exp $"); #endif #endif /* not lint && not SCCSID */ @@ -782,15 +782,15 @@ tty_bind_char(el, force) continue; /* Put the old default binding back, and set the new binding */ key_clear(el, map, old); - map[old[0]] = dmap[old[0]]; + map[(int)old[0]] = dmap[(int)old[0]]; key_clear(el, map, new); /* MAP_VI == 1, MAP_EMACS == 0... */ - map[new[0]] = tp->bind[el->el_map.type]; + map[(int)new[0]] = tp->bind[(int)el->el_map.type]; if (dalt) { key_clear(el, alt, old); - alt[old[0]] = dalt[old[0]]; + alt[(int)old[0]] = dalt[(int)old[0]]; key_clear(el, alt, new); - alt[new[0]] = tp->bind[el->el_map.type+1]; + alt[(int)new[0]] = tp->bind[(int)el->el_map.type+1]; } } }