possible error in tutorial in manual. foreign-string-to-lisp missing :count keyword

Bug #1288470 reported by BenAnhalt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CFFI
New
Low
Unassigned

Bug Description

While working through the tutorial, the steps at the end of section 4.9 "Calling Lisp from C" were failing. I found that changing the call to foreign-string-to-lisp in the easy-write callback from (foreign-string-to-lisp ptr data-size nil) to (foreign-string-to-lisp ptr :count data-size) allowed the example to work.

Revision history for this message
Luís Oliveira (luismbo) wrote :

Oops. FTR, it'd be nice to put the tutorial code in a test file (possibly with mock code in libtest.so so we don't have to depend on libcurl, not sure) so that we catch bitrot there.

Changed in cffi:
importance: Undecided → Low
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.