diff options
author | David Robillard <d@drobilla.net> | 2020-10-15 08:43:01 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-15 08:43:01 +0200 |
commit | 5f8eca211c33a86fc823bd058c17f7e11e70531d (patch) | |
tree | 78d83d361e7a84fc180e5d198fdc5b3ff4bb956b /pugl | |
parent | e552cb32de829be6bdcac56f8760257152b3ab41 (diff) | |
download | pugl-5f8eca211c33a86fc823bd058c17f7e11e70531d.tar.gz pugl-5f8eca211c33a86fc823bd058c17f7e11e70531d.tar.bz2 pugl-5f8eca211c33a86fc823bd058c17f7e11e70531d.zip |
Use unsigned constants in enum definitions
Diffstat (limited to 'pugl')
-rw-r--r-- | pugl/pugl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h index bbe1b5d..4d363c3 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -109,10 +109,10 @@ typedef struct { Keyboard modifier flags. */ typedef enum { - PUGL_MOD_SHIFT = 1, ///< Shift key - PUGL_MOD_CTRL = 1 << 1, ///< Control key - PUGL_MOD_ALT = 1 << 2, ///< Alt/Option key - PUGL_MOD_SUPER = 1 << 3 ///< Mod4/Command/Windows key + PUGL_MOD_SHIFT = 1u << 0u, ///< Shift key + PUGL_MOD_CTRL = 1u << 1u, ///< Control key + PUGL_MOD_ALT = 1u << 2u, ///< Alt/Option key + PUGL_MOD_SUPER = 1u << 3u ///< Mod4/Command/Windows key } PuglMod; /** @@ -637,7 +637,7 @@ typedef enum { - X11: Calls XInitThreads() which is required for some drivers. */ - PUGL_WORLD_THREADS = 1 << 0 + PUGL_WORLD_THREADS = 1u << 0u } PuglWorldFlag; /** |