passing structs by value breaks :boolean returns

Bug #1473273 reported by 3b
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CFFI
New
Undecided
Unassigned

Bug Description

(asdf:load-system 'cffi-libffi)

(cffi:defcstruct foo)

(cffi:defcfun foo :boolean
  (foo (:struct foo)))

=>

; Derived type of CFFI::RESULT is
; (VALUES SYSTEM-AREA-POINTER &OPTIONAL),
; conflicting with its asserted type
; NUMBER.

sbcl 1.2.13.x windows 8/linux x8664
 cffi HEAD (0.15 + a few commits) and cffi ca. dec 2014

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.