]> git.eshelyaron.com Git - emacs.git/commit
Fix mistake in switch-case generation of `null` (bug#49746)
authorMattias Engdegård <mattiase@acm.org>
Tue, 27 Jul 2021 15:26:26 +0000 (17:26 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 27 Jul 2021 15:32:23 +0000 (17:32 +0200)
commit949dd41c31dab69f7a5067bba324c28bb2cfbf8e
tree4bded5ff6a4692a1f41dd678a41a29caf34b19b6
parent989937e1bc29ffec3835aee34c46479d25d0bf05
Fix mistake in switch-case generation of `null` (bug#49746)

Reported by Gregor Zattler.

* lisp/emacs-lisp/bytecomp.el (byte-compile--cond-switch-prefix):
Be more careful in the selection of equality.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test case.
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el