diff options
Diffstat (limited to 'libguile/regex-posix.c')
-rw-r--r-- | libguile/regex-posix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libguile/regex-posix.c b/libguile/regex-posix.c index 1e9333ba7..0c51280ed 100644 --- a/libguile/regex-posix.c +++ b/libguile/regex-posix.c @@ -256,13 +256,13 @@ SCM_DEFINE (scm_regexp_exec, "regexp-exec", 2, 2, 0, /* The match vector must include a cell for the string that was matched, so add 1. */ mvec = scm_c_make_vector (nmatches + 1, SCM_UNSPECIFIED); - SCM_VECTOR_SET(mvec,0, str); + SCM_SIMPLE_VECTOR_SET(mvec,0, str); for (i = 0; i < nmatches; ++i) if (matches[i].rm_so == -1) - SCM_VECTOR_SET(mvec, i+1, + SCM_SIMPLE_VECTOR_SET(mvec, i+1, scm_cons (scm_from_int (-1), scm_from_int (-1))); else - SCM_VECTOR_SET(mvec, i+1, + SCM_SIMPLE_VECTOR_SET(mvec, i+1, scm_cons (scm_from_long (matches[i].rm_so + offset), scm_from_long (matches[i].rm_eo + offset))); } |