Fix broken byte-compilation of unary comparisons
authorMattias Engdegård <mattiase@acm.org>
Wed, 26 Jul 2023 16:39:36 +0000 (18:39 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 26 Jul 2023 16:49:51 +0000 (18:49 +0200)
commit27944247d161f0ed65bbb34959c4493f7984987a
tree4436e287d7484e46f951ac343c6ac2be07885207
parentb4063c399be2472dfb184ac003cf85c882253e25
Fix broken byte-compilation of unary comparisons

* lisp/emacs-lisp/byte-opt.el (byte-opt--nary-comparison):
Fix a typo causing miscompilation of code such as (OP X),
where OP is <, >, <=, >= or =.
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--test-cases): Add test case.

Reported by Richard Copley.
lisp/emacs-lisp/byte-opt.el
test/lisp/emacs-lisp/bytecomp-tests.el