case UINTN to UINT32.
authorvanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Mon, 14 Jul 2008 02:26:07 +0000 (02:26 +0000)
committervanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Mon, 14 Jul 2008 02:26:07 +0000 (02:26 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@5457 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/UefiIfrDefault.c

index f33d63c..ca012fb 100644 (file)
@@ -718,8 +718,8 @@ UefiDefaultsToFrameworkDefaults (
       // Initialize EFI_HII_VARIABLE_PACK\r
       //\r
       Pack->Header.Type   = 0;\r
-      Pack->Header.Length = Size;\r
-      Pack->VariableNameLength = StrSize (Node->Name);\r
+      Pack->Header.Length = (UINT32) Size;\r
+      Pack->VariableNameLength = (UINT32) StrSize (Node->Name);\r
       CopyMem (&Pack->VariableGuid, &Node->Guid, sizeof (EFI_GUID));\r
       \r
       CopyMem ((UINT8 *) Pack + sizeof (EFI_HII_VARIABLE_PACK), Node->Name, StrSize (Node->Name));\r