diff options
Diffstat (limited to 'os/kernel')
-rw-r--r-- | os/kernel/include/chevents.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/kernel/include/chevents.h b/os/kernel/include/chevents.h index c423c34ef..ac46ae826 100644 --- a/os/kernel/include/chevents.h +++ b/os/kernel/include/chevents.h @@ -73,10 +73,10 @@ typedef struct EventSource { #define EVENTSOURCE_DECL(name) EventSource name = _EVENTSOURCE_DATA(name)
/** All events allowed mask.*/
-#define ALL_EVENTS -1
+#define ALL_EVENTS ((eventmask_t)-1)
/** Returns the event mask from the event identifier.*/
-#define EVENT_MASK(eid) (1 << (eid))
+#define EVENT_MASK(eid) ((eventmask_t)(1 << (eid)))
/**
* @brief Registers an Event Listener on an Event Source.
|