diff options
| author | Andrea Corallo | 2020-12-27 15:51:57 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-12-27 21:33:42 +0100 |
| commit | 92af4e8fc97a3af043904c32488b84c0e943473d (patch) | |
| tree | b82a6794a77dfd1f582b06ba84327a5f226149b9 | |
| parent | 34e9aae4407aceb54c7b6bc4c9b4e3e10ec62314 (diff) | |
| download | emacs-92af4e8fc97a3af043904c32488b84c0e943473d.tar.gz emacs-92af4e8fc97a3af043904c32488b84c0e943473d.zip | |
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-set-cmp-range): Improve.
| -rw-r--r-- | lisp/emacs-lisp/comp-cstr.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp-cstr.el b/lisp/emacs-lisp/comp-cstr.el index 62e3c47ce3a..d41501e6804 100644 --- a/lisp/emacs-lisp/comp-cstr.el +++ b/lisp/emacs-lisp/comp-cstr.el | |||
| @@ -374,7 +374,10 @@ Return them as multiple value." | |||
| 374 | "Support range comparison functions." | 374 | "Support range comparison functions." |
| 375 | (with-comp-cstr-accessors | 375 | (with-comp-cstr-accessors |
| 376 | (if ext-range | 376 | (if ext-range |
| 377 | (setf (typeset dst) (and (typeset old-dst) '(float)) | 377 | (setf (typeset dst) (when (cl-some (lambda (x) |
| 378 | (comp-subtype-p 'float x)) | ||
| 379 | (typeset old-dst)) | ||
| 380 | '(float)) | ||
| 378 | (valset dst) () | 381 | (valset dst) () |
| 379 | (range dst) (if (range old-dst) | 382 | (range dst) (if (range old-dst) |
| 380 | (comp-range-intersection (range old-dst) | 383 | (comp-range-intersection (range old-dst) |