Skip to content

Commit

Permalink
0.7.8.33:
Browse files Browse the repository at this point in the history
	Allow dumping of non-SIMPLE-ARRAY vectors (bug report from cmucl-help
		saved at Entomotomy under the name
		dumping-of-non-simple-vectors-fails) (thanks to Pierre Mai
		for discussion)
  • Loading branch information
csrhodes committed Oct 12, 2002
1 parent 1234f4c commit 53a7501
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/compiler/dump.lisp
Expand Up @@ -709,7 +709,9 @@
;;; tables.
(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
Expand Down
7 changes: 7 additions & 0 deletions tests/dump.impure-cload.lisp
Expand Up @@ -59,4 +59,11 @@

(defparameter *path* #p"MY-LOGICAL-HOST:FOO;BAR.LISP")

;;; Non-SIMPLE-ARRAY VECTORs should be dumpable, though they can lose
;;; their complex attributes.

(defparameter *string* #.(make-array 3 :initial-element #\a
:fill-pointer 2
:element-type 'character))

(sb-ext:quit :unix-status 104) ; success
2 changes: 1 addition & 1 deletion version.lisp-expr
Expand Up @@ -18,4 +18,4 @@
;;; internal versions off the main CVS branch, it gets hairier, e.g.
;;; "0.pre7.14.flaky4.13".)

"0.7.8.32"
"0.7.8.33"

0 comments on commit 53a7501

Please sign in to comment.