Skip to content

Commit

Permalink
fix: explicitly make adjustable array
Browse files Browse the repository at this point in the history
  • Loading branch information
Vee Satayamas committed Mar 20, 2023
1 parent d55f687 commit ca83bd0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utf8-input-stream.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@
(defmethod stream-read-line ((s character-input-stream))
(declare (optimize (speed 3) (debug 0) (safety 0)))
(let ((ctx (ctx s))
(ch-vec (make-array *line-tmp-size* :fill-pointer 0 :element-type 'character)))
(ch-vec (make-array *line-tmp-size*
:fill-pointer 0
:element-type 'character
:adjustable t)))
(macrolet ((return-val (last?)
`(return (values (vector-to-string ch-vec)
,last?))))
Expand Down

0 comments on commit ca83bd0

Please sign in to comment.