fnmatch: avoid compiler warning
authorEric Blake <ebb9@byu.net>
Sat, 14 Nov 2009 22:25:49 +0000 (15:25 -0700)
committerEric Blake <ebb9@byu.net>
Sat, 14 Nov 2009 22:41:06 +0000 (15:41 -0700)
commita86ea846c82189cec7b2fad8679377d5475211c1
tree317bb27dc31537db38189b97892d953200f2465e
parentfdac57e87e1ba42f9ed516f0b6b828e4522719bb
fnmatch: avoid compiler warning

cond ? (size_t) : (char* - char* + 1) varies in signedness, but
using 1LU coerces the latter half to unsigned math.

* lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
to silence compiler warning about mismatch signedness in ?:.
Reported by Robert Millan.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/fnmatch_loop.c