mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-14 13:21:54 -08:00
Minor read-only annotations in cmpopt.lsp
This commit is contained in:
parent
3e761f0ef5
commit
65635f1452
1 changed files with 2 additions and 0 deletions
|
|
@ -123,6 +123,7 @@
|
|||
((member first '(OR AND))
|
||||
(let ((var (gensym)))
|
||||
`(let ((,var ,object))
|
||||
(declare (:read-only ,var))
|
||||
(,first ,@(loop for type in rest
|
||||
collect `(typep ,var ',type))))))
|
||||
;;
|
||||
|
|
@ -141,6 +142,7 @@
|
|||
(subtypep type 'fixnum))
|
||||
(setf first 'fixnum))
|
||||
`(LET ((,var ,object))
|
||||
(declare (:read-only ,var))
|
||||
(AND (TYPEP ,var ',first)
|
||||
,@(expand-in-interval-p `(the ,first ,var) rest)))))
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue