use 0x01UL for shift

This commit is contained in:
Vincent Wei
2020-03-25 15:31:31 +08:00
parent 7ba6246dd1
commit 1a63b30d32
+2 -2
View File
@@ -639,14 +639,14 @@ AlertDesktopTimerEvent (void)
static inline void
SetMsgQueueTimerFlag (PMSGQUEUE pMsgQueue, int slot)
{
pMsgQueue->TimerMask |= (0x01 << slot);
pMsgQueue->TimerMask |= (0x01UL << slot);
POST_MSGQ (pMsgQueue);
}
static inline void
RemoveMsgQueueTimerFlag (PMSGQUEUE pMsgQueue, int slot)
{
pMsgQueue->TimerMask &= ~(0x01 << slot);
pMsgQueue->TimerMask &= ~(0x01UL << slot);
}
BOOL mg_InitTimer (void);