From 5b9bc6024c246f232c64f6409088fedf558917af Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 4 May 2016 17:38:03 +1000 Subject: 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 --- lib/libalpm/db.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/db.h') diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h index 9673c7b1..05ef43e0 100644 --- a/lib/libalpm/db.h +++ b/lib/libalpm/db.h @@ -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. */ -- cgit v1.2.3-24-g4f1b