aboutsummaryrefslogtreecommitdiffstats
path: root/src/chartab.c
diff options
context:
space:
mode:
authorJoakim Verona2012-05-30 14:08:12 +0200
committerJoakim Verona2012-05-30 14:08:12 +0200
commit70700d8c47a35b19e29607ac5f0ed322bdd78249 (patch)
tree4fa00d3fac00025354f0b6e23dcda1b58689a094 /src/chartab.c
parent44fce8ffe7198991c41c985ff4e67ec7d407907e (diff)
parent72cb32cf2f0938dd7dc733eed77b1ed1e497b053 (diff)
downloademacs-70700d8c47a35b19e29607ac5f0ed322bdd78249.tar.gz
emacs-70700d8c47a35b19e29607ac5f0ed322bdd78249.zip
upstream
Diffstat (limited to 'src/chartab.c')
-rw-r--r--src/chartab.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chartab.c b/src/chartab.c
index 8d903749284..e1252962612 100644
--- a/src/chartab.c
+++ b/src/chartab.c
@@ -107,9 +107,9 @@ the char-table has no extra slot. */)
107 else 107 else
108 { 108 {
109 CHECK_NATNUM (n); 109 CHECK_NATNUM (n);
110 n_extras = XINT (n); 110 if (XINT (n) > 10)
111 if (n_extras > 10)
112 args_out_of_range (n, Qnil); 111 args_out_of_range (n, Qnil);
112 n_extras = XINT (n);
113 } 113 }
114 114
115 size = VECSIZE (struct Lisp_Char_Table) - 1 + n_extras; 115 size = VECSIZE (struct Lisp_Char_Table) - 1 + n_extras;
@@ -646,7 +646,7 @@ or a character code. Return VALUE. */)
646 } 646 }
647 else if (EQ (range, Qnil)) 647 else if (EQ (range, Qnil))
648 XCHAR_TABLE (char_table)->defalt = value; 648 XCHAR_TABLE (char_table)->defalt = value;
649 else if (INTEGERP (range)) 649 else if (CHARACTERP (range))
650 char_table_set (char_table, XINT (range), value); 650 char_table_set (char_table, XINT (range), value);
651 else if (CONSP (range)) 651 else if (CONSP (range))
652 { 652 {
@@ -1223,7 +1223,7 @@ static int uniprop_decoder_count
1223static uniprop_decoder_t 1223static uniprop_decoder_t
1224uniprop_get_decoder (Lisp_Object table) 1224uniprop_get_decoder (Lisp_Object table)
1225{ 1225{
1226 int i; 1226 EMACS_INT i;
1227 1227
1228 if (! INTEGERP (XCHAR_TABLE (table)->extras[1])) 1228 if (! INTEGERP (XCHAR_TABLE (table)->extras[1]))
1229 return NULL; 1229 return NULL;
@@ -1303,7 +1303,7 @@ static int uniprop_encoder_count
1303static uniprop_decoder_t 1303static uniprop_decoder_t
1304uniprop_get_encoder (Lisp_Object table) 1304uniprop_get_encoder (Lisp_Object table)
1305{ 1305{
1306 int i; 1306 EMACS_INT i;
1307 1307
1308 if (! INTEGERP (XCHAR_TABLE (table)->extras[2])) 1308 if (! INTEGERP (XCHAR_TABLE (table)->extras[2]))
1309 return NULL; 1309 return NULL;