mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 22:29:16 +02:00
removing unintended immutability check from OP_STRING_REF
This commit is contained in:
parent
6afc9f964d
commit
9c128c49fa
1 changed files with 0 additions and 2 deletions
2
eval.c
2
eval.c
|
@ -1474,8 +1474,6 @@ sexp sexp_vm (sexp ctx, sexp proc) {
|
|||
case OP_STRING_REF:
|
||||
if (! sexp_stringp(_ARG1))
|
||||
sexp_raise("string-ref: not a string", sexp_list1(ctx, _ARG1));
|
||||
else if (sexp_immutablep(_ARG1))
|
||||
sexp_raise("string-ref: immutable string", sexp_list1(ctx, _ARG1));
|
||||
else if (! sexp_fixnump(_ARG2))
|
||||
sexp_raise("string-ref: not an integer", sexp_list1(ctx, _ARG2));
|
||||
i = sexp_unbox_fixnum(_ARG2);
|
||||
|
|
Loading…
Add table
Reference in a new issue