struct by value break bool parameters
Bug #1517578 reported by
Lorenzo Marcantonio
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CFFI |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Possibly related to #1473273
Given the following defs
(defcstruct key-t
(keycode :int)
(c :char)
(pressed :bool)
(lalt :bool)
(lctrl :bool)
(ralt :bool)
(rctrl :bool)
(shift :bool))
(defcfun ("TCOD_
(flush :bool))
a call to (console-
The value 0 is not of type SB-SYS:
... for some reason the bool is 'expected' as a pointer (in the original signature it was an int)
As a workaround, using :int instead of :bool in the definition seems to work (at least doesn't give an error)
To post a comment you must log in.
pushed a failing test for this at: https:/ /github. com/cffi/ cffi/commit/ 9e75e110b0569f3 199ff0042441bf5 6d1859f0cc