mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-16 06:12:25 -08:00
Rewrite vector-push-extend so that MSVC accepts it.
This commit is contained in:
parent
aaf55b6a46
commit
f5e4b66797
1 changed files with 2 additions and 0 deletions
|
|
@ -79,10 +79,12 @@ cl_vector_push(cl_object value, cl_object v)
|
|||
|
||||
@(defun vector-push-extend (value v &optional (extent MAKE_FIXNUM(0)))
|
||||
@
|
||||
{
|
||||
cl_index f = fix(cl_fill_pointer(v));
|
||||
if (f >= v->vector.dim) {
|
||||
v = extend_vector(v, ecl_to_size(extent));
|
||||
}
|
||||
ecl_aset1(v, v->vector.fillp, value);
|
||||
@(return MAKE_FIXNUM(v->vector.fillp++));
|
||||
}
|
||||
@)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue