diff options
| author | Paul Eggert | 2019-01-13 15:45:14 -0800 |
|---|---|---|
| committer | Paul Eggert | 2019-01-13 15:46:44 -0800 |
| commit | 1a722e888454a0cb24dffc35455467688b4b4c60 (patch) | |
| tree | 715e89cb287001ec3857aacbe988bf5ec0d9f6fd /src/bytecode.c | |
| parent | 800d3815e4a82f83b98cf87b205dcfdb0670907f (diff) | |
| download | emacs-1a722e888454a0cb24dffc35455467688b4b4c60.tar.gz emacs-1a722e888454a0cb24dffc35455467688b4b4c60.zip | |
Fix translation-region bug with MAX_CHAR
Also, clean up the code a bit.
Actually I discovered the bug while cleaning up the code.
* src/editfns.c (Fsubst_char_in_region)
(Ftranslate_region_internal): Use bool for booleans.
(Ftranslate_region_internal): Fix off-by-1 bug when a
translation table translates the maximum char. Assume C99
decl-after-statement, similar minor cleanups.
* test/src/editfns-tests.el (test-translate-region-internal):
New test.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions