mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
char-set-any improperly unpacks charset data
* libguile/srfi-14.c (scm_char_set_any): unpack the charset correctly
This commit is contained in:
parent
7165abeba8
commit
693e72891f
1 changed files with 3 additions and 1 deletions
|
@ -1495,7 +1495,9 @@ SCM_DEFINE (scm_char_set_any, "char-set-any", 2, 0, 0,
|
||||||
SCM_VALIDATE_PROC (1, pred);
|
SCM_VALIDATE_PROC (1, pred);
|
||||||
SCM_VALIDATE_SMOB (2, cs, charset);
|
SCM_VALIDATE_SMOB (2, cs, charset);
|
||||||
|
|
||||||
cs_data = (scm_t_char_set *) cs;
|
cs_data = SCM_CHARSET_DATA (cs);
|
||||||
|
if (cs_data->len == 0)
|
||||||
|
return SCM_BOOL_T;
|
||||||
|
|
||||||
for (k = 0; k < cs_data->len; k++)
|
for (k = 0; k < cs_data->len; k++)
|
||||||
for (n = cs_data->ranges[k].lo; n <= cs_data->ranges[k].hi; n++)
|
for (n = cs_data->ranges[k].lo; n <= cs_data->ranges[k].hi; n++)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue