From 282cf9c66b59adc1838b239d19274f54dae2eddb Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 6 Dec 2019 16:45:59 +0000 Subject: [PATCH] libmalcontent: Set flag-like values for flag types Previously these flags were using automatically assigned enum values, which would have eventually resulted in having more than one bit set per flag. Fix that before it happens by explicitly assigning flag-like values. This was an oversight when they were first written. This introduces no functional changes because both enums only had one element so far. Signed-off-by: Philip Withnall --- libmalcontent/manager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmalcontent/manager.h b/libmalcontent/manager.h index 841ba8a..843d014 100644 --- a/libmalcontent/manager.h +++ b/libmalcontent/manager.h @@ -43,7 +43,7 @@ G_BEGIN_DECLS typedef enum { MCT_GET_APP_FILTER_FLAGS_NONE = 0, - MCT_GET_APP_FILTER_FLAGS_INTERACTIVE, + MCT_GET_APP_FILTER_FLAGS_INTERACTIVE = (1 << 0), } MctGetAppFilterFlags; /** @@ -60,7 +60,7 @@ typedef enum typedef enum { MCT_SET_APP_FILTER_FLAGS_NONE = 0, - MCT_SET_APP_FILTER_FLAGS_INTERACTIVE, + MCT_SET_APP_FILTER_FLAGS_INTERACTIVE = (1 << 0), } MctSetAppFilterFlags; #define MCT_TYPE_MANAGER mct_manager_get_type ()