From 5fb26b23d777e3e19ec30c118a7c985f1e95ab4b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 15 Jun 2022 13:02:42 -0400 Subject: Consistently use unsigned literals for enum constants --- lv2/options/options.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lv2') diff --git a/lv2/options/options.h b/lv2/options/options.h index 0d0c16d..06e5db4 100644 --- a/lv2/options/options.h +++ b/lv2/options/options.h @@ -102,11 +102,11 @@ typedef struct { /** A status code for option functions. */ typedef enum { - LV2_OPTIONS_SUCCESS = 0, /**< Completed successfully. */ - LV2_OPTIONS_ERR_UNKNOWN = 1, /**< Unknown error. */ - LV2_OPTIONS_ERR_BAD_SUBJECT = 1 << 1, /**< Invalid/unsupported subject. */ - LV2_OPTIONS_ERR_BAD_KEY = 1 << 2, /**< Invalid/unsupported key. */ - LV2_OPTIONS_ERR_BAD_VALUE = 1 << 3 /**< Invalid/unsupported value. */ + LV2_OPTIONS_SUCCESS = 0u, /**< Completed successfully. */ + LV2_OPTIONS_ERR_UNKNOWN = 1u, /**< Unknown error. */ + LV2_OPTIONS_ERR_BAD_SUBJECT = 1u << 1u, /**< Invalid/unsupported subject. */ + LV2_OPTIONS_ERR_BAD_KEY = 1u << 2u, /**< Invalid/unsupported key. */ + LV2_OPTIONS_ERR_BAD_VALUE = 1u << 3u /**< Invalid/unsupported value. */ } LV2_Options_Status; /** -- cgit v1.2.1