cl-freetype2 icon indicating copy to clipboard operation
cl-freetype2 copied to clipboard

MAKE-VECTOR fails due to incorrect struct name

Open lokedhs opened this issue 7 years ago • 0 comments

When creating a vector using MAKE-VECTOR, the following error is returned:

Unknown CFFI type (:STRUCT FREETYPE2-TYPES:FT-VECTOR)
   [Condition of type CFFI::UNDEFINED-FOREIGN-TYPE-ERROR]

The reason for this is a typo in that function. The following:

  (let ((vector (make-collected-foreign 'ft-vector
                                        '(:struct ft-vector))))

Should be replaced by:

  (let ((vector (make-collected-foreign 'ft-vector
                                        '(:struct foreign-ft-vector))))

lokedhs avatar Apr 24 '18 14:04 lokedhs