mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-21 23:38:49 -05:00
Prevent wrapping of enum items
GCC-6 points out that the value we use for the sentinal in enums is actually too large for the integer type. Reduce the bitshift by one to fix this. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
2694d17ad9
commit
5b9bc6024c
@ -203,7 +203,7 @@ typedef enum _alpm_siglevel_t {
|
||||
ALPM_SIG_DATABASE_MARGINAL_OK = (1 << 12),
|
||||
ALPM_SIG_DATABASE_UNKNOWN_OK = (1 << 13),
|
||||
|
||||
ALPM_SIG_USE_DEFAULT = (1 << 31)
|
||||
ALPM_SIG_USE_DEFAULT = (1 << 30)
|
||||
} alpm_siglevel_t;
|
||||
|
||||
/** PGP signature verification status return codes */
|
||||
|
@ -40,7 +40,7 @@ typedef enum _alpm_dbinfrq_t {
|
||||
/* ALL should be info stored in the package or database */
|
||||
INFRQ_ALL = INFRQ_BASE | INFRQ_DESC | INFRQ_FILES |
|
||||
INFRQ_SCRIPTLET | INFRQ_DSIZE,
|
||||
INFRQ_ERROR = (1 << 31)
|
||||
INFRQ_ERROR = (1 << 30)
|
||||
} alpm_dbinfrq_t;
|
||||
|
||||
/** Database status. Bitflags. */
|
||||
|
Loading…
Reference in New Issue
Block a user