mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 01:07:34 +02:00
Avoid computing (length args) twice
This commit is contained in:
parent
92bc0b6bdc
commit
838240fceb
1 changed files with 1 additions and 1 deletions
|
@ -1864,7 +1864,7 @@
|
|||
(lambda args
|
||||
(let* ((field-tags (vector-ref name 2))
|
||||
(field-values (list->vector args)))
|
||||
(when (not (equal? (length field-tags) (length args)))
|
||||
(when (not (equal? (length field-tags) (vector-length field-values)))
|
||||
(error "invalid number of arguments passed to record type constructor" args))
|
||||
(vector record-marker name field-values))))
|
||||
(define (type-slot-offset name sym)
|
||||
|
|
Loading…
Add table
Reference in a new issue