Re: [edk2] [PATCH v3 08/12] PcAtChipsetPkg: Refine casting expression result to bigger size

2017-02-26 Thread Ni, Ruiyu
Reviewed-by: Ruiyu Ni Thanks/Ray > -Original Message- > From: Wu, Hao A > Sent: Saturday, February 25, 2017 1:13 PM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Ni, Ruiyu > Subject: [PATCH v3 08/12] PcAtChipsetPkg: Refine

[edk2] [PATCH v3 08/12] PcAtChipsetPkg: Refine casting expression result to bigger size

2017-02-24 Thread Hao Wu
There are cases that the operands of an expression are all with rank less than UINT64/INT64 and the result of the expression is explicitly cast to UINT64/INT64 to fit the target size. An example will be: UINT32 a,b; // a and b can be any unsigned int type with rank less than UINT64, like //