From: arighi Date: Thu, 20 May 2010 13:26:28 +0000 (+0000) Subject: STM32: fix build warning. X-Git-Tag: 2.5.0~181 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=854e5978391f485d488460cdf44b758e7b8b2c5d;p=bertos.git STM32: fix build warning. Fix the following build warning: bertos/cpu/cortex-m3/drv/clock_stm32.c: In function 'pll_clock': bertos/cpu/cortex-m3/drv/clock_stm32.c:74: warning: comparison between signed and unsigned integer expressions git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3736 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/drv/clock_stm32.c b/bertos/cpu/cortex-m3/drv/clock_stm32.c index c225da8d..8e9e86d0 100644 --- a/bertos/cpu/cortex-m3/drv/clock_stm32.c +++ b/bertos/cpu/cortex-m3/drv/clock_stm32.c @@ -66,7 +66,7 @@ INLINE int rcc_get_flag_status(uint32_t flag) INLINE uint16_t pll_clock(void) { - int div, mul; + unsigned int div, mul; /* Hopefully this is evaluate at compile time... */ for (div = 2; div; div--)