Skip to content

Commit fc79d7d

Browse files
ccqpeinvindarel
authored andcommitted
add type for enabling optimize level 3
1 parent 256156c commit fc79d7d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

str.lisp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,14 +763,15 @@ Returns the string written to file."
763763
(cl-ppcre:scan-to-strings
764764
,(apply #'str:concat (reverse regex))
765765
,str)
766-
(declare (ignore ,whole-str))
766+
(declare (ignore ,whole-str)
767+
((or null (simple-array string (*))) ,regs))
767768
(when ,regs
768769
(let ,(loop for (v ind) in vars
769770
unless (string= (symbol-name v) "_")
770771
collect v)
771772
,@(loop for (v ind) in vars
772773
unless (string= (symbol-name v) "_")
773-
collect `(setf ,v (elt ,regs ,ind)))
774+
collect `(setf ,v (aref ,regs ,ind)))
774775
(return-from ,block
775776
(progn ,@forms)))))))))))
776777

0 commit comments

Comments
 (0)