]> git.eshelyaron.com Git - emacs.git/commit
Fix byte-compilation of (+ -0.0) (bug#42597)
authorMattias Engdegård <mattiase@acm.org>
Mon, 3 Aug 2020 13:29:41 +0000 (15:29 +0200)
committerMattias Engdegård <mattiase@acm.org>
Fri, 7 Aug 2020 07:41:15 +0000 (09:41 +0200)
commit204273c3b9f0a77459661790aa929f86067a9ab1
tree64afe85216ef0de38d2931702b1dc4ff6b3c430d
parentb83f274869e60342d978ad7e12c5167f0dc8f2a6
Fix byte-compilation of (+ -0.0) (bug#42597)

* lisp/emacs-lisp/bytecomp.el (byte-compile-associative):
Translate numerical identity expressions, such as (+ x) and (* x),
into (* x 1) since the previous translation (+ x 0) gets it wrong
for x = -0.0.
* test/lisp/emacs-lisp/bytecomp-tests.el
(byte-opt-testsuite-arith-data): Add test cases.
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el