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
|
;; Simple structs: call this with a list of types, and get a type that marshals
|
||||||
;; C structs to/from Scheme lists.
|
;; C structs to/from Scheme lists.
|
||||||
(define* (_list-struct #:alignment [alignment #f] type . types)
|
(define* (_list-struct #:alignment [alignment #f] type . types)
|
||||||
(let ([stype (make-cstruct-type types #f alignment)]
|
(let* ([types (cons type types)]
|
||||||
[offsets (compute-offsets types alignment)]
|
[stype (make-cstruct-type types #f alignment)]
|
||||||
[len (add1 (length types))]
|
[offsets (compute-offsets types alignment)]
|
||||||
[types (cons type types)])
|
[len (length types)])
|
||||||
(make-ctype stype
|
(make-ctype stype
|
||||||
(lambda (vals)
|
(lambda (vals)
|
||||||
(unless (list? vals)
|
(unless (list? vals)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user