From d2107dfb29d31b6569d79208cc3057d99b0e8110 Mon Sep 17 00:00:00 2001
From: dtc <dtc>
Date: Sat, 13 May 2000 12:28:41 +0000
Subject: [PATCH] Avoid boxing the result in data-vector-set by returning the
 given new-value which is already boxed.

---
 code/array.lisp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/code/array.lisp b/code/array.lisp
index 984eaf196..3677f56fe 100644
--- a/code/array.lisp
+++ b/code/array.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/array.lisp,v 1.30 2000/05/12 20:54:36 dtc Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/array.lisp,v 1.31 2000/05/13 12:28:41 dtc Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -351,7 +351,8 @@
 				    `(,atype
 				      (data-vector-set (the ,atype vector)
 						       index
-						       (the ,type new-value)))))
+						       (the ,type new-value))
+				      new-value)))
 			      stuff))))
       (dispatch
        t
-- 
GitLab