From b2c122be4c97da8b696ff962b10a370d01af5f4e Mon Sep 17 00:00:00 2001 From: Andrew Fernandes Date: Sun, 6 Sep 2015 17:59:04 -0400 Subject: [PATCH] Fix a signed and unsigned integer comparison warning --- .../cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c b/libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c index 0e4dc2832e..fc67d5fdcd 100644 --- a/libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c +++ b/libraries/mbed/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c @@ -92,7 +92,7 @@ void init_clock(void) /* For compatibility purpose, the default behaviour is to first attempt to initialise an external clock, and after a timeout, use the internal RC one. To avoid this wait, boards that don't have an external oscillator can set TARGET_NRF_LFCLK_RC directly. */ - int i = 0; + uint32_t i = 0; const uint32_t polling_period = 200; const uint32_t timeout = 1000000;