1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

char-set-filter! does not properly iterate over the charset

* libguile/srfi-14.c (scm_char_set_filter_x): iterate over
  codepoints
This commit is contained in:
Michael Gran 2009-09-02 06:16:35 -07:00
parent 91772d8f8a
commit bde543e88b

View file

@ -1298,7 +1298,7 @@ SCM_DEFINE (scm_char_set_filter_x, "char-set-filter!", 3, 0, 0,
for (k = 0; k < p->len; k++)
for (n = p->ranges[k].lo; n <= p->ranges[k].hi; n++)
{
SCM res = scm_call_1 (pred, SCM_MAKE_CHAR (k));
SCM res = scm_call_1 (pred, SCM_MAKE_CHAR (n));
if (scm_is_true (res))
SCM_CHARSET_SET (base_cs, n);