Re: [edk2] [PATCH v3 09/12] SecurityPkg/Opal: Refine casting expression result to bigger size

2017-03-05 Thread Dong, Eric
Reviewed-by: Eric Dong -Original Message- From: Wu, Hao A Sent: Saturday, February 25, 2017 1:13 PM To: edk2-devel@lists.01.org Cc: Wu, Hao A; Dong, Eric; Tian, Feng; Zhang, Chao B Subject: [PATCH v3 09/12] SecurityPkg/Opal: Refine casting expression result to

[edk2] [PATCH v3 09/12] SecurityPkg/Opal: 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 //