mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
HV:common:fix "signed/unsigned conversion without cast"
Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.change the uint64_t type numeric constant's suffix from U to UL Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -11,10 +11,10 @@ static uint32_t create_e820_table(struct e820_entry *_e820)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
ASSERT(e820_entries > 0,
|
||||
ASSERT(e820_entries > 0U,
|
||||
"e820 should be inited");
|
||||
|
||||
for (i = 0; i < e820_entries; i++) {
|
||||
for (i = 0U; i < e820_entries; i++) {
|
||||
_e820[i].baseaddr = e820[i].baseaddr;
|
||||
_e820[i].length = e820[i].length;
|
||||
_e820[i].type = e820[i].type;
|
||||
|
Reference in New Issue
Block a user