diff options
author | David Robillard <d@drobilla.net> | 2022-06-15 13:02:42 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-17 17:08:37 -0400 |
commit | 5fb26b23d777e3e19ec30c118a7c985f1e95ab4b (patch) | |
tree | 72ed2302849a5851809ef1e2bcb5e05df11892ee /lv2/options | |
parent | d42276f10266d826e20d51a5cfb490bddc2f6e89 (diff) | |
download | lv2-5fb26b23d777e3e19ec30c118a7c985f1e95ab4b.tar.xz |
Consistently use unsigned literals for enum constants
Diffstat (limited to 'lv2/options')
-rw-r--r-- | lv2/options/options.h | 10 |
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; /** |