From fb849d0dc0b28f0d174bff8d2ffbd8fcd180a028 Mon Sep 17 00:00:00 2001 From: niruiyu Date: Tue, 8 Nov 2011 08:42:34 +0000 Subject: Add the missing (UINTN) type cast when calculating the end of variable store. Signed-off-by: niruiyu Reviewed-by: erictian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12672 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c index b22739c22d..84d22d8dcf 100644 --- a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c +++ b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c @@ -268,7 +268,7 @@ GetEndPointer ( // // The end of variable store // - return (VARIABLE_HEADER *) HEADER_ALIGN (VolHeader + VolHeader->Size); + return (VARIABLE_HEADER *) HEADER_ALIGN ((UINTN) VolHeader + VolHeader->Size); } /** -- cgit v1.2.3