summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-08 08:42:34 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-08 08:42:34 +0000
commitfb849d0dc0b28f0d174bff8d2ffbd8fcd180a028 (patch)
tree6304eca0e8449c8deeb932c2a65473984ef67b2c
parent72861c22e50f41572b1f3e682b7126b5c57718c5 (diff)
downloadedk2-platforms-fb849d0dc0b28f0d174bff8d2ffbd8fcd180a028.tar.xz
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
-rw-r--r--MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/**