make-cvector with 0 args

svn: r5619
This commit is contained in:
Eli Barzilay 2007-02-15 20:39:17 +00:00
parent e488422b1c
commit 492733aa40

View File

@ -961,8 +961,9 @@
(provide (rename allocate-cvector make-cvector))
(define (allocate-cvector type len)
(let ([cblock (malloc len type)])
(make-cvector cblock type len)))
(make-cvector (if (zero? len) #f ; 0 => NULL
(malloc len type))
type len))
(provide (rename cvector-args cvector))
(define (cvector-args type . args)