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:
Huihuang Shi
2018-07-03 18:37:07 +08:00
committed by lijinxia
parent 91fdffb19a
commit 102d2f1a68
3 changed files with 9 additions and 9 deletions

View File

@@ -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;