diff --git a/Library/OcAppleKernelLib/Link.c b/Library/OcAppleKernelLib/Link.c index 6cc04d9b..036a595b 100644 --- a/Library/OcAppleKernelLib/Link.c +++ b/Library/OcAppleKernelLib/Link.c @@ -605,7 +605,7 @@ InternalCalculateTargetsIntel64 ( TargetAddress = ALIGN_VALUE ( (Section->Address + LoadAddress), - (1U << Section->Alignment) + (UINT64)(1U << Section->Alignment) ); TargetAddress -= Section->Address; } @@ -1593,7 +1593,7 @@ InternalPrelinkKext64 ( while ((Section = MachoGetNextSection64 (MachoContext, Segment, Section)) != NULL) { Section->Address = ALIGN_VALUE ( (Section->Address + LoadAddress), - (1U << Section->Alignment) + (UINT64)(1U << Section->Alignment) ); } diff --git a/Library/OcMachoLib/Symbols.c b/Library/OcMachoLib/Symbols.c index 82146ead..3e99c232 100644 --- a/Library/OcMachoLib/Symbols.c +++ b/Library/OcMachoLib/Symbols.c @@ -594,7 +594,7 @@ MachoRelocateSymbol64 ( Value = ALIGN_VALUE ( (Section->Address + LinkAddress), - (1U << Section->Alignment) + (UINT64)(1U << Section->Alignment) ); Value -= Section->Address; //