/
niceSOFT
/
diffutils
Обзор
Документация
Войти
/
niceSOFT
/
diffutils
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.3
gl/lib/regex_internal.c.diff
25 строк
788 B
Jim Meyering
build: update gnulib to latest and adapt; update bootstrap, too
22 мар 2013, 08:39
22 мар 2013, 08:39
90fd310
Код
Авторство
О чём код?
diff --git a/lib/regex_internal.c b/lib/regex_internal.c index 904b88e..61c8d9d 100644 --- a/lib/regex_internal.c +++ b/lib/regex_internal.c @@ -17,6 +17,8 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include "verify.h" +#include "intprops.h" static void re_string_construct_common (const char *str, Idx len, re_string_t *pstr, RE_TRANSLATE_TYPE trans, bool icase, @@ -1394,7 +1396,10 @@ static void internal_function re_node_set_remove_at (re_node_set *set, Idx idx) { - if (idx < 0 || idx >= set->nelem) + verify (! TYPE_SIGNED (Idx)); + /* if (idx < 0) + return; */ + if (idx >= set->nelem) return; --set->nelem; for (; idx < set->nelem; idx++)