fnmatch: avoid compiler warning
authorEric Blake <ebb9@byu.net>
Sat, 14 Nov 2009 22:25:49 +0000 (15:25 -0700)
committerIan Beckwith <ianb@erislabs.net>
Sun, 15 Nov 2009 03:32:59 +0000 (03:32 +0000)
commite14e47927f968a45afc9f9c0e9633c4513e80f7e
treed1f2f00de5a4a5fbdbd1e12027e3a3ceaaf50ef0
parentd837f6725cd0362a5a0ee1feee103e3f407e07a7
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