diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c index 7b3aa64d77..59a859fc93 100644 --- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c +++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c @@ -185,7 +185,7 @@ AppendToUpdateBuffer ( } CopyMem (UefiData->Data + UefiData->Offset, OpCodeBuf, BufSize); - UefiData->Offset += BufSize; + UefiData->Offset += (UINT32) BufSize; return EFI_SUCCESS; }