diff --git a/include/nuttx/semaphore.h b/include/nuttx/semaphore.h index 1c3b3256dbf..fdf32534f46 100644 --- a/include/nuttx/semaphore.h +++ b/include/nuttx/semaphore.h @@ -66,7 +66,7 @@ /* Mutex related helper macros */ -#define NXSEM_MBLOCKING_BIT (((uint32_t)1) << 31) +#define NXSEM_MBLOCKING_BIT ((uint32_t)0x80000000) #define NXSEM_NO_MHOLDER ((uint32_t)0x7ffffffe) #define NXSEM_MRESET ((uint32_t)0x7fffffff)