aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPip Cet2020-08-21 14:47:45 +0200
committerLars Ingebrigtsen2020-08-21 14:47:45 +0200
commit19ee08f1e8599ce0e0465f6ffbd4a76791d791b4 (patch)
tree3fa8d56a55b5166e619065aade6b84cf3ced7e04 /src
parenta415179b56f022f50138f55d231070e3d1b00697 (diff)
downloademacs-19ee08f1e8599ce0e0465f6ffbd4a76791d791b4.tar.gz
emacs-19ee08f1e8599ce0e0465f6ffbd4a76791d791b4.zip
Fix return value for CCL opcode lookup-integer
* src/ccl.c (ccl_driver): Fix LookupIntConstTbl return value. * test/lisp/international/ccl-tests.el (ccl-hash-table): Add test. * lisp/international/ccl.el (ccl-embed-data): Don't pass non-numbers to `ccl-fixnum' (bug#36740).
Diffstat (limited to 'src')
-rw-r--r--src/ccl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ccl.c b/src/ccl.c
index 86debeef0e5..796698eb1ce 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -1374,7 +1374,7 @@ ccl_driver (struct ccl_program *ccl, int *source, int *destination, int src_size
1374 if (! (IN_INT_RANGE (eop) && CHARACTERP (opl))) 1374 if (! (IN_INT_RANGE (eop) && CHARACTERP (opl)))
1375 CCL_INVALID_CMD; 1375 CCL_INVALID_CMD;
1376 reg[RRR] = charset_unicode; 1376 reg[RRR] = charset_unicode;
1377 reg[rrr] = eop; 1377 reg[rrr] = XFIXNUM (opl);
1378 reg[7] = 1; /* r7 true for success */ 1378 reg[7] = 1; /* r7 true for success */
1379 } 1379 }
1380 else 1380 else