mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 20:05:07 -05:00
88f348f2b1
The signedness of char is implementation defined. On systems where char is unsigned, comparing a variable of type char with -1 is never true, due to integer promotion rules. To avoid this, introduce a define for invalid field separators where -1 is cast to char. This will ensure that the return value check works for both unsigned and signed char. Fixes one warning [-Wtype-limits] for comparissons with -1 when compiling with -funsigned-char. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org> |
||
---|---|---|
.. | ||
.gitignore | ||
cleanupdelta.c | ||
Makefile.am | ||
pacsort.c | ||
pactree.c | ||
testpkg.c | ||
util-common.c | ||
util-common.h | ||
vercmp.c |