mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-03-03 11:01:03 -08:00
MAKE-STRING always produced a BASE-STRING
This commit is contained in:
parent
d715216ac2
commit
6fd5899a64
1 changed files with 3 additions and 2 deletions
|
|
@ -34,10 +34,11 @@ do_make_base_string(cl_index s, int code)
|
|||
static cl_object
|
||||
do_make_string(cl_index s, cl_index code)
|
||||
{
|
||||
cl_object x = cl_alloc_simple_base_string(s);
|
||||
cl_object x = cl_alloc_simple_extended_string(s);
|
||||
cl_object c = CODE_CHAR(code);
|
||||
cl_index i;
|
||||
for (i = 0; i < s; i++)
|
||||
x->base_string.self[i] = code;
|
||||
x->string.self[i] = c;
|
||||
return x;
|
||||
}
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue