From 653f0208117389565b51065b31be331b0e81d914 Mon Sep 17 00:00:00 2001
From: wlott <wlott>
Date: Sat, 9 Nov 1991 18:57:19 +0000
Subject: [PATCH] When converting MAKE-STRING into a MAKE-ARRAY, wrap the
 length with (the index ...) so that MAKE-ARRAY can tell that it's a vector.

---
 compiler/array-tran.lisp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/compiler/array-tran.lisp b/compiler/array-tran.lisp
index 1b31a7edb..24a20dc0b 100644
--- a/compiler/array-tran.lisp
+++ b/compiler/array-tran.lisp
@@ -7,11 +7,11 @@
 ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/array-tran.lisp,v 1.12 1991/11/09 02:42:34 wlott Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/array-tran.lisp,v 1.13 1991/11/09 18:57:19 wlott Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
-;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/array-tran.lisp,v 1.12 1991/11/09 02:42:34 wlott Exp $
+;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/array-tran.lisp,v 1.13 1991/11/09 18:57:19 wlott Exp $
 ;;;
 ;;; This file contains array specific optimizers and transforms.
 ;;; 
@@ -176,7 +176,7 @@
 ;;; Just convert it into a make-array.
 ;;;
 (def-source-transform make-string (length &key (initial-element #\NULL))
-  `(make-array ,length
+  `(make-array (the index ,length)
 	       :element-type 'base-char
 	       :initial-element ,initial-element))
 
-- 
GitLab