summaryrefslogtreecommitdiffstats
path: root/DynamicTablesPkg/Library
diff options
context:
space:
mode:
Diffstat (limited to 'DynamicTablesPkg/Library')
-rw-r--r--DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c2
-rw-r--r--DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
index ce494816ed..c1a7528419 100644
--- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
+++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
@@ -1130,7 +1130,7 @@ ParseCmObjDesc (
&RemainingSize,
1
);
- if ((RemainingSize > CmObjDesc->Size) ||
+ if ((RemainingSize > (INTN)CmObjDesc->Size) ||
(RemainingSize < 0))
{
ASSERT (0);
diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c b/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c
index d264975eb0..549cee1b3f 100644
--- a/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c
+++ b/DynamicTablesPkg/Library/Common/TableHelperLib/TableHelper.c
@@ -170,7 +170,10 @@ AddAcpiHeader (
CfgMfrInfo->OemId[2],
CfgMfrInfo->OemId[3]
) |
- ((UINT64)Generator->AcpiTableSignature << 32);
+ LShiftU64 (
+ (UINT64)Generator->AcpiTableSignature,
+ 32
+ );
}
// UINT32 OemRevision
@@ -257,7 +260,7 @@ AddSsdtAcpiHeader (
CfgMfrInfo->OemId[2],
CfgMfrInfo->OemId[3]
) |
- ((UINT64)Generator->AcpiTableSignature << 32);
+ LShiftU64 ((UINT64)Generator->AcpiTableSignature, 32);
}
if (AcpiTableInfo->OemRevision != 0) {