case UINTN to UINT32.
[people/mcb30/edk2.git] / 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