aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-04 20:44:52 +0000
committerRichard M. Stallman1997-07-04 20:44:52 +0000
commit2e34157cd9e74150e79e0ce23236252b47fb5f1a (patch)
tree418451da8380ec73d5d46dc648c07e6ad8af845f /src/keymap.c
parent8c239ac3ed4f636810bc08959e1318b1a6e928ba (diff)
downloademacs-2e34157cd9e74150e79e0ce23236252b47fb5f1a.tar.gz
emacs-2e34157cd9e74150e79e0ce23236252b47fb5f1a.zip
Fix bugs with inappropriate mixing of Lisp_Object with int.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/keymap.c b/src/keymap.c
index ef7e90df53a..5d18cf9349d 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -538,8 +538,7 @@ get_keyelt (object, autoload)
538 key = Fcdr (object); 538 key = Fcdr (object);
539 if (INTEGERP (key) && (XINT (key) & meta_modifier)) 539 if (INTEGERP (key) && (XINT (key) & meta_modifier))
540 { 540 {
541 object = access_keymap (map, make_number (meta_prefix_char), 541 object = access_keymap (map, meta_prefix_char, 0, 0);
542 0, 0);
543 map = get_keymap_1 (object, 0, autoload); 542 map = get_keymap_1 (object, 0, autoload);
544 object = access_keymap (map, 543 object = access_keymap (map,
545 make_number (XINT (key) & ~meta_modifier), 544 make_number (XINT (key) & ~meta_modifier),
@@ -1515,8 +1514,8 @@ then the value includes only maps for prefixes that start with PREFIX.")
1515 1514
1516 element = thisseq; 1515 element = thisseq;
1517 tem = Fvconcat (1, &element); 1516 tem = Fvconcat (1, &element);
1518 XVECTOR (tem)->contents[XINT (last)] 1517 XSETFASTINT (XVECTOR (tem)->contents[XINT (last)],
1519 = XINT (elt) | meta_modifier; 1518 XINT (elt) | meta_modifier);
1520 1519
1521 /* This new sequence is the same length as 1520 /* This new sequence is the same length as
1522 thisseq, so stick it in the list right 1521 thisseq, so stick it in the list right
@@ -2746,7 +2745,7 @@ describe_vector (vector, elt_prefix, elt_describer,
2746 int starting_i; 2745 int starting_i;
2747 2746
2748 if (indices == 0) 2747 if (indices == 0)
2749 indices = (Lisp_Object *) alloca (3 * sizeof (Lisp_Object)); 2748 indices = (int *) alloca (3 * sizeof (int));
2750 2749
2751 definition = Qnil; 2750 definition = Qnil;
2752 2751