From 5f8eca211c33a86fc823bd058c17f7e11e70531d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 15 Oct 2020 08:43:01 +0200 Subject: Use unsigned constants in enum definitions --- pugl/pugl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pugl') 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; /** -- cgit v1.2.1