mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-29 21:30:01 +00:00
build: fix various compile warnings
mostly comparison signed vs unsigned and possible un-initialized usage
This commit is contained in:
committed by
Szymon Janc
parent
d8dfb16991
commit
333c575bbf
@@ -184,7 +184,7 @@ nrf_timer_set_ocmp(struct nrf52_hal_timer *bsptimer, uint32_t expiry)
|
||||
} else {
|
||||
rtctimer->INTENCLR = RTC_INTENCLR_TICK_Msk;
|
||||
|
||||
if (delta_t < (1UL << 24)) {
|
||||
if (delta_t < (1L << 24)) {
|
||||
rtctimer->CC[NRF_RTC_TIMER_CC_INT] = expiry & 0x00ffffff;
|
||||
} else {
|
||||
/* CC too far ahead. Just make sure we set compare far ahead */
|
||||
|
||||
Reference in New Issue
Block a user