diff options
| author | Pip Cet | 2020-08-21 14:47:45 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-08-21 14:47:45 +0200 |
| commit | 19ee08f1e8599ce0e0465f6ffbd4a76791d791b4 (patch) | |
| tree | 3fa8d56a55b5166e619065aade6b84cf3ced7e04 /src | |
| parent | a415179b56f022f50138f55d231070e3d1b00697 (diff) | |
| download | emacs-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 |