]> git.sur5r.net Git - i3/i3/blobdiff - include/i3/ipc.h
Fixes for undefined behaviour on signed shift (#3453)
[i3/i3] / include / i3 / ipc.h
index 0c57f7fdf40c51541af0ca735b1e54ad63e7df4b..884a0cf635c75985ef1bebd1a689be9039d48556 100644 (file)
@@ -87,7 +87,7 @@ typedef struct i3_ipc_header {
  * Events from i3 to clients. Events have the first bit set high.
  *
  */
-#define I3_IPC_EVENT_MASK (1 << 31)
+#define I3_IPC_EVENT_MASK (1UL << 31)
 
 /* The workspace event will be triggered upon changes in the workspace list */
 #define I3_IPC_EVENT_WORKSPACE (I3_IPC_EVENT_MASK | 0)