aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/options
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-15 13:02:42 -0400
committerDavid Robillard <d@drobilla.net>2022-07-17 17:08:37 -0400
commit5fb26b23d777e3e19ec30c118a7c985f1e95ab4b (patch)
tree72ed2302849a5851809ef1e2bcb5e05df11892ee /lv2/options
parentd42276f10266d826e20d51a5cfb490bddc2f6e89 (diff)
downloadlv2-5fb26b23d777e3e19ec30c118a7c985f1e95ab4b.tar.xz
Consistently use unsigned literals for enum constants
Diffstat (limited to 'lv2/options')
-rw-r--r--lv2/options/options.h10
1 files changed, 5 insertions, 5 deletions
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;
/**