mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
HV:treewide:fix value outside range of underlying type
There are potential value outside range of underlying type in some assignment expressions. This violates Rule 10.3 or Rule 10.4 of MISRA C:2012. BTW, all operations shall be conducted in exactly the same arithmetic (underlying) type, otherwise, there is a value outside range violation. Update related assignment expressions. V1-->V2: * Fix potential overflow in "pit_calibrate_tsc"; * Move PTDEV_INVALID_PIN definition before get_entry_info since this MACRO is only used by debug function. Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
#include <types.h>
|
||||
#include <cpu.h>
|
||||
|
||||
#define TSS_AVAIL (9)
|
||||
#define TSS_AVAIL (9U)
|
||||
|
||||
/*
|
||||
* Definition of an 8 byte code segment descriptor.
|
||||
|
Reference in New Issue
Block a user