From 854e5978391f485d488460cdf44b758e7b8b2c5d Mon Sep 17 00:00:00 2001 From: arighi Date: Thu, 20 May 2010 13:26:28 +0000 Subject: [PATCH] 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 --- bertos/cpu/cortex-m3/drv/clock_stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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--) -- 2.25.1