fix bug in previous patch - only use array length in sexp_c_string for explicit result params

This commit is contained in:
Alex Shinn 2011-11-26 06:57:24 +00:00
parent e608bec866
commit fd425fb1ec

View file

@ -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)))