Skip to content

Commit 809eb9f

Browse files
yuchuyanglijinxia
authored andcommitted
vioapic.c: Using suffix rather than casting
Using suffix "UL" rather than type casting 0xffffffff. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
1 parent cb064b1 commit 809eb9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypervisor/arch/x86/guest/vioapic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ vioapic_write(struct vioapic *vioapic, uint32_t addr, uint32_t data)
330330
last = vioapic->rtbl[pin].reg;
331331

332332
data64 = (uint64_t)data << lshift;
333-
mask64 = (uint64_t)0xffffffff << lshift;
333+
mask64 = 0xffffffffUL << lshift;
334334
new = last & (~mask64 | RTBL_RO_BITS);
335335
new |= data64 & ~RTBL_RO_BITS;
336336

0 commit comments

Comments
 (0)