mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Fix a crash in record predicates
Ensures that the argument to a record predicate has enough items to be a record before checking for the record-marker and type name.
This commit is contained in:
parent
1c0e4811c5
commit
623f59a84d
1 changed files with 1 additions and 0 deletions
|
@ -1973,6 +1973,7 @@
|
|||
(define (make-type-predicate pred name)
|
||||
(lambda (obj)
|
||||
(and (vector? obj)
|
||||
(= (vector-length obj) 3)
|
||||
(equal? (vector-ref obj 0) record-marker)
|
||||
(equal? (vector-ref obj 1) name))))
|
||||
(define (make-constructor make name)
|
||||
|
|
Loading…
Add table
Reference in a new issue