ffi/unsafe: unbreak _list-struct
Broken by 0b1f96ab3d
(specifically one of my changes to
Tobias's patch).
This commit is contained in:
parent
3d91b6b77f
commit
0b6f24e3b5
|
@ -1316,10 +1316,10 @@
|
|||
;; Simple structs: call this with a list of types, and get a type that marshals
|
||||
;; C structs to/from Scheme lists.
|
||||
(define* (_list-struct #:alignment [alignment #f] type . types)
|
||||
(let ([stype (make-cstruct-type types #f alignment)]
|
||||
[offsets (compute-offsets types alignment)]
|
||||
[len (add1 (length types))]
|
||||
[types (cons type types)])
|
||||
(let* ([types (cons type types)]
|
||||
[stype (make-cstruct-type types #f alignment)]
|
||||
[offsets (compute-offsets types alignment)]
|
||||
[len (length types)])
|
||||
(make-ctype stype
|
||||
(lambda (vals)
|
||||
(unless (list? vals)
|
||||
|
|
Loading…
Reference in New Issue
Block a user