diff options
| author | Mattias EngdegÄrd | 2019-12-22 12:09:06 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2019-12-27 14:55:22 +0100 |
| commit | 4fff3edec8cc3e7b0125276b9e297a2b445702ad (patch) | |
| tree | 28826a47fee9955ce952649a32c65e39fb6dfc04 | |
| parent | 2902fb035af000d3c15c5c595933883ccc808580 (diff) | |
| download | emacs-4fff3edec8cc3e7b0125276b9e297a2b445702ad.tar.gz 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).
| -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." | |||
| 3462 | (if (equal-including-properties (car elt) ,const) | 3462 | (if (equal-including-properties (car elt) ,const) |
| 3463 | (setq result elt))) | 3463 | (setq result elt))) |
| 3464 | result) | 3464 | result) |
| 3465 | (assq ,const byte-compile-constants)) | 3465 | (assoc ,const byte-compile-constants #'eql)) |
| 3466 | (car (setq byte-compile-constants | 3466 | (car (setq byte-compile-constants |
| 3467 | (cons (list ,const) byte-compile-constants))))) | 3467 | (cons (list ,const) byte-compile-constants))))) |
| 3468 | 3468 | ||