2009-11-09 Robert Millan <rmh.grub@aybabtu.com>

* gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
        conditional expression).
This commit is contained in:
Robert Millan 2009-11-09 19:20:33 +00:00
parent 66e9b71250
commit 84b860d827
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
* gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
conditional expression).
2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
Import from Gnulib.

View file

@ -1069,9 +1069,10 @@ EXT (INT opt, const CHAR *pattern, const CHAR *string, const CHAR *string_end,
size_t plensize; \
size_t newpsize; \
\
assert (p > startp); \
plen = (opt == L_('?') || opt == L_('@') \
? pattern_len \
: p - startp + 1); \
: (unsigned) (p - startp) + 1); \
plensize = plen * sizeof (CHAR); \
newpsize = offsetof (struct patternlist, str) + plensize; \
if ((size_t) -1 / sizeof (CHAR) < plen \