diff --git a/tools/chibi-ffi b/tools/chibi-ffi index 571f69f0..cd8c4ca7 100755 --- a/tools/chibi-ffi +++ b/tools/chibi-ffi @@ -457,7 +457,9 @@ (type-id-value type)))) (define (c-array-length type) - (or (get-array-length #f type) "-1")) + (if (memq 'result (type-array type)) + "sexp_unbox_fixnum(res)" + "-1")) (define (c->scheme-converter type val . o) (let ((base (type-base type)))