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:
parent
66e9b71250
commit
84b860d827
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
Import from Gnulib.
|
Import from Gnulib.
|
||||||
|
|
|
@ -1069,9 +1069,10 @@ EXT (INT opt, const CHAR *pattern, const CHAR *string, const CHAR *string_end,
|
||||||
size_t plensize; \
|
size_t plensize; \
|
||||||
size_t newpsize; \
|
size_t newpsize; \
|
||||||
\
|
\
|
||||||
|
assert (p > startp); \
|
||||||
plen = (opt == L_('?') || opt == L_('@') \
|
plen = (opt == L_('?') || opt == L_('@') \
|
||||||
? pattern_len \
|
? pattern_len \
|
||||||
: p - startp + 1); \
|
: (unsigned) (p - startp) + 1); \
|
||||||
plensize = plen * sizeof (CHAR); \
|
plensize = plen * sizeof (CHAR); \
|
||||||
newpsize = offsetof (struct patternlist, str) + plensize; \
|
newpsize = offsetof (struct patternlist, str) + plensize; \
|
||||||
if ((size_t) -1 / sizeof (CHAR) < plen \
|
if ((size_t) -1 / sizeof (CHAR) < plen \
|
||||||
|
|
Loading…
Reference in a new issue