aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab1998-04-14 12:52:08 +0000
committerAndreas Schwab1998-04-14 12:52:08 +0000
commitd387866ae592b22bad5ae654eb72727d80130145 (patch)
tree3b254460a59623095afe16563a3aa1c13f0d314a /src
parent4b81132cafbf7497edbb0b96535e5f1de0a25bf1 (diff)
downloademacs-d387866ae592b22bad5ae654eb72727d80130145.tar.gz
emacs-d387866ae592b22bad5ae654eb72727d80130145.zip
(ccl_driver, syms_of_ccl): Fix mixing of Lisp_Object and
int.
Diffstat (limited to 'src')
-rw-r--r--src/ccl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ccl.c b/src/ccl.c
index d68367f5f90..d4494c2fecc 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -1216,7 +1216,7 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
1216 { 1216 {
1217 1217
1218 size = XVECTOR (Vccl_translation_table_vector)->size; 1218 size = XVECTOR (Vccl_translation_table_vector)->size;
1219 point = ccl_prog[ic++]; 1219 point = XINT (ccl_prog[ic++]);
1220 if (point >= size) continue; 1220 if (point >= size) continue;
1221 table = XVECTOR (Vccl_translation_table_vector)-> 1221 table = XVECTOR (Vccl_translation_table_vector)->
1222 contents[point]; 1222 contents[point];
@@ -1285,8 +1285,8 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
1285 table_vector_size = XVECTOR (Vccl_translation_table_vector)->size; 1285 table_vector_size = XVECTOR (Vccl_translation_table_vector)->size;
1286 for (;i < j;i++) 1286 for (;i < j;i++)
1287 { 1287 {
1288 point = ccl_prog[ic++]; 1288 point = XINT (ccl_prog[ic++]);
1289 if (XINT(point) == -1) 1289 if (point == -1)
1290 { 1290 {
1291 skip_to_next = 0; 1291 skip_to_next = 0;
1292 continue; 1292 continue;
@@ -1723,7 +1723,7 @@ syms_of_ccl ()
1723 DEFVAR_LISP ("ccl-translation-table-vector", &Vccl_translation_table_vector, 1723 DEFVAR_LISP ("ccl-translation-table-vector", &Vccl_translation_table_vector,
1724 "Where is stored translation tables for CCL program.\n\ 1724 "Where is stored translation tables for CCL program.\n\
1725Because CCL program can't access these tables except by the index of the vector."); 1725Because CCL program can't access these tables except by the index of the vector.");
1726 Vccl_translation_table_vector = Fmake_vector (XFASTINT (16), Qnil); 1726 Vccl_translation_table_vector = Fmake_vector (make_number (16), Qnil);
1727 1727
1728 DEFVAR_LISP ("font-ccl-encoder-alist", &Vfont_ccl_encoder_alist, 1728 DEFVAR_LISP ("font-ccl-encoder-alist", &Vfont_ccl_encoder_alist,
1729 "Alist of fontname patterns vs corresponding CCL program.\n\ 1729 "Alist of fontname patterns vs corresponding CCL program.\n\