mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
arch/intel64: Fix coverity.
This commit fixed mulitply-overflow in frequency calculation. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
committed by
GUIDINGLI
parent
efa0ae5275
commit
1502e6da15
@@ -101,7 +101,7 @@ static inline uint64_t x86_64_timer_tsc_freq_15h(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return crystal_freq / denominator * numerator;
|
||||
return (uint64_t)(crystal_freq / denominator) * numerator;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user