From ec44f02ecc0020d7592a66a82b443e2909baa3f9 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Fri, 7 Jan 2011 00:41:08 +0000 Subject: [PATCH] Fix 32-bit build break git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11235 6f19259b-4bc3-4df7-8a09-765794883524 --- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c index 3cf5f1392a..ad8dbe46c3 100644 --- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c +++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c @@ -1528,7 +1528,7 @@ MtrrDebugPrintAllMtrrs ( for (Index = 0; Index < MTRR_NUMBER_OF_FIXED_MTRR; Index++) { Base = mMtrrLibFixedMtrrTable[Index].BaseAddress; for (Index1 = 0; Index1 < 8; Index1++) { - MemoryType = RShiftU64 (MtrrSettings.Fixed.Mtrr[Index], Index1 * 8) & 0xff; + MemoryType = (UINTN)RShiftU64 (MtrrSettings.Fixed.Mtrr[Index], Index1 * 8) & 0xff; if (MemoryType > CacheWriteBack) { MemoryType = MTRR_CACHE_INVALID_TYPE; } -- 2.39.2