diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2019-12-22 12:09:06 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2019-12-27 14:55:22 +0100 |
commit | 4fff3edec8cc3e7b0125276b9e297a2b445702ad (patch) | |
tree | 28826a47fee9955ce952649a32c65e39fb6dfc04 /lisp/emacs-lisp | |
parent | 2902fb035af000d3c15c5c595933883ccc808580 (diff) | |
download | emacs-4fff3edec8cc3e7b0125276b9e297a2b445702ad.tar.gz emacs-4fff3edec8cc3e7b0125276b9e297a2b445702ad.tar.bz2 emacs-4fff3edec8cc3e7b0125276b9e297a2b445702ad.zip |
Deduplicate non-fixnum numeric constants in byte-compilation
* lisp/emacs-lisp/bytecomp.el (byte-compile-get-constant):
Use eql for looking up constants instead of eq, allowing
for bignum and flonum deduplication (bug#38708).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 118356ec26a..60dbae1d4bc 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -3462,7 +3462,7 @@ for symbols generated by the byte compiler itself." (if (equal-including-properties (car elt) ,const) (setq result elt))) result) - (assq ,const byte-compile-constants)) + (assoc ,const byte-compile-constants #'eql)) (car (setq byte-compile-constants (cons (list ,const) byte-compile-constants))))) |