From 00de4ec650c10e84bbd6982afdd2b4e12addbb32 Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Tue, 21 Dec 2004 17:59:58 +0000 Subject: [PATCH] (coerce #c(1 2) '(complex float)) was causing an error. Fix it. (From sbcl-devel mailing list.) --- code/seq.lisp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/seq.lisp b/code/seq.lisp index a8e3f36a0..e44a670af 100644 --- a/code/seq.lisp +++ b/code/seq.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/seq.lisp,v 1.50 2004/10/22 18:17:10 rtoy Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/seq.lisp,v 1.51 2004/12/21 17:59:58 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -1024,6 +1024,9 @@ ((csubtypep type (specifier-type '(complex long-float))) (complex (%long-float (realpart object)) (%long-float (imagpart object)))) + ((csubtypep type (specifier-type '(complex float))) + (complex (%single-float (realpart object)) + (%single-float (imagpart object)))) ((and (typep object 'rational) (csubtypep type (specifier-type '(complex float)))) ;; The case where object is complex, is handled way -- GitLab