]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/CpuDxe/CpuPageTable.c
UefiCpuPkg/CpuDxe: fix an incorrect bit-wise operation
authorJian J Wang <jian.j.wang@intel.com>
Sat, 8 Sep 2018 02:43:00 +0000 (10:43 +0800)
committerJian J Wang <jian.j.wang@intel.com>
Mon, 10 Sep 2018 09:08:22 +0000 (17:08 +0800)
commit8e2018f944ed18400f468fd9380284d665535481
tree87860e86e632575d2ab29879a5b873e2cdb95b7d
parent51d0100b3c711554f28ff990f484e79e053fd518
UefiCpuPkg/CpuDxe: fix an incorrect bit-wise operation

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1164

The left operand is 64-bit but right operand could be 32-bit.
A typecast is a must because of '~' op before it.

Cc: Hao A Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
UefiCpuPkg/CpuDxe/CpuPageTable.c