diff options
author | Gary Houston <ghouston@arglist.com> | 2001-07-22 12:49:02 +0000 |
---|---|---|
committer | Gary Houston <ghouston@arglist.com> | 2001-07-22 12:49:02 +0000 |
commit | 6a1677a396302f218b8ce82973d3f50f7d1b9487 (patch) | |
tree | 7bcb5233dcd45ef09a379564157bb934c3089345 | |
parent | 9977b4fb1f0e255226fe047defed6e5710d95e05 (diff) | |
download | guile-6a1677a396302f218b8ce82973d3f50f7d1b9487.tar.gz |
* regex-posix.c (s_scm_regexp_exec): use scm_long2num not
SCM_MAKINUM to convert regoff_t value to SCM.
-rw-r--r-- | libguile/ChangeLog | 5 | ||||
-rw-r--r-- | libguile/regex-posix.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libguile/ChangeLog b/libguile/ChangeLog index 213f021cd..13e56a81a 100644 --- a/libguile/ChangeLog +++ b/libguile/ChangeLog @@ -1,3 +1,8 @@ +2001-07-22 Gary Houston <ghouston@arglist.com> + + * regex-posix.c (s_scm_regexp_exec): use scm_long2num not + SCM_MAKINUM to convert regoff_t value to SCM. + 2001-07-21 Gary Houston <ghouston@arglist.com> * scmsigs.c: include sys/time.h for itimer stuff. diff --git a/libguile/regex-posix.c b/libguile/regex-posix.c index 1a232d59f..d5d8fba63 100644 --- a/libguile/regex-posix.c +++ b/libguile/regex-posix.c @@ -278,8 +278,8 @@ SCM_DEFINE (scm_regexp_exec, "regexp-exec", 2, 2, 0, SCM_VELTS(mvec)[i+1] = scm_cons (SCM_MAKINUM (-1), SCM_MAKINUM (-1)); else SCM_VELTS(mvec)[i+1] - = scm_cons(SCM_MAKINUM(matches[i].rm_so + offset), - SCM_MAKINUM(matches[i].rm_eo + offset)); + = scm_cons (scm_long2num (matches[i].rm_so + offset), + scm_long2num (matches[i].rm_eo + offset)); } scm_must_free ((char *) matches); SCM_ALLOW_INTS; |