mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
Unreachable code in charset set operator
* libguile/srfi-14.c (scm_i_charset_set): remove unreachable code in scm_i_charset_set
This commit is contained in:
parent
aff31b0f99
commit
08ed805879
1 changed files with 5 additions and 12 deletions
|
@ -86,18 +86,11 @@ scm_i_charset_set (scm_t_char_set *cs, scm_t_wchar n)
|
||||||
/* This char is one below the current range. */
|
/* This char is one below the current range. */
|
||||||
if (i > 0 && cs->ranges[i - 1].hi + 1 == n)
|
if (i > 0 && cs->ranges[i - 1].hi + 1 == n)
|
||||||
{
|
{
|
||||||
/* It is also one above the previous range, so combine them. */
|
/* It is also one above the previous range. */
|
||||||
cs->ranges[i - 1].hi = cs->ranges[i].hi;
|
/* This is an impossible condition: in the previous
|
||||||
if (i < len - 1)
|
iteration, the test for 'one above the current range'
|
||||||
memmove (cs->ranges + i, cs->ranges + (i + 1),
|
should already have inserted the character here. */
|
||||||
sizeof (scm_t_char_range) * (len - i - 1));
|
abort ();
|
||||||
cs->ranges = scm_gc_realloc (cs->ranges,
|
|
||||||
sizeof (scm_t_char_range) * len,
|
|
||||||
sizeof (scm_t_char_range) * (len -
|
|
||||||
1),
|
|
||||||
"character-set");
|
|
||||||
cs->len = len - 1;
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue