Is this truly a bug? It seems like passing pointer to foreign struct should not be passed by value to the corresponding c function:
(defcfun "sumpair" :int (p (:struct struct-pair)))
corresponding failing test:
(deftest (fsbv.wfo :expected-to-fail t) (with-foreign-object (arg '(:struct struct-pair)) (convert-into-foreign-memory '(40 . 2) '(:struct struct-pair) arg) (sumpair arg)) 42)
Is there something I'm missing here?
Is this truly a bug? It seems like passing pointer to foreign struct should not be passed by value to the corresponding c function:
(defcfun "sumpair" :int
(p (:struct struct-pair)))
corresponding failing test:
(deftest (fsbv.wfo :expected-to-fail t) foreign- object (arg '(:struct struct-pair)) convert- into-foreign- memory '(40 . 2) '(:struct struct-pair) arg)
(with-
(
(sumpair arg))
42)
Is there something I'm missing here?