From e5489f537287be01870c30f8705a7bb6b689627b Mon Sep 17 00:00:00 2001 From: pmai <pmai> Date: Sat, 12 Oct 2002 16:43:56 +0000 Subject: [PATCH] Fix the call to coerce in dump-vector to use a type that is a recognizale subtype of vector, i.e. from simple-array to (simple-array <elem-type> (*)). This change was necessitated by recent fixes to coerce, to bring it in line with the ANSI standard. This fixes dumping of non-simple vectors, as reported on cmucl-help, see also the Entomotomy bug dumping-of-non-simple-vectors-fails. --- compiler/dump.lisp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/dump.lisp b/compiler/dump.lisp index fddd7e225..7e3ec4753 100644 --- a/compiler/dump.lisp +++ b/compiler/dump.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/compiler/dump.lisp,v 1.76 2002/08/27 22:18:26 moore Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/dump.lisp,v 1.77 2002/10/12 16:43:56 pmai Exp $") ;;; ;;; ********************************************************************** ;;; @@ -1355,7 +1355,8 @@ ;;; (defun dump-vector (x file) (let ((simple-version (if (array-header-p x) - (coerce x 'simple-array) + (coerce x + `(simple-array ,(array-element-type x) (*))) x))) (typecase simple-version (simple-base-string -- GitLab