fix optional argument of _list-cstruct
This commit is contained in:
parent
6ac15688b2
commit
5a833ffc57
|
@ -1143,7 +1143,7 @@
|
||||||
|
|
||||||
;; 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 2] . types)
|
(define* (_list-struct #:alignment [alignment #f] . types)
|
||||||
(let ([stype (make-cstruct-type types #f alignment)]
|
(let ([stype (make-cstruct-type types #f alignment)]
|
||||||
[offsets (compute-offsets types)]
|
[offsets (compute-offsets types)]
|
||||||
[len (length types)])
|
[len (length types)])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user