mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
arch/arm/src/am335x: Fix incorrect signedness of variable
The check `if (delta < 0)` in line 353 and 407 would always be false if delta were unsigned. Signed-off-by: Mingjie Shen <shen497@purdue.edu>
This commit is contained in:
@@ -338,7 +338,7 @@ done:
|
||||
static uint32_t am335x_lcd_divisor(uint32_t reference, uint32_t frequency)
|
||||
{
|
||||
uint32_t div;
|
||||
uint32_t delta;
|
||||
int32_t delta;
|
||||
uint32_t mindelta;
|
||||
int i;
|
||||
|
||||
@@ -374,7 +374,7 @@ static int am335x_set_refclk(uint32_t frequency)
|
||||
uint32_t sysclk;
|
||||
uint32_t mul;
|
||||
uint32_t div;
|
||||
uint32_t delta;
|
||||
int32_t delta;
|
||||
uint32_t mindelta;
|
||||
int timeout;
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user