OcMachoLib: Add explicit casts to silence MSVC for IA32 targets

This commit is contained in:
Download-Fritz 2019-11-03 16:46:35 +01:00
parent c5024de443
commit 05127da085
2 changed files with 3 additions and 3 deletions

View File

@ -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)
);
}

View File

@ -594,7 +594,7 @@ MachoRelocateSymbol64 (
Value = ALIGN_VALUE (
(Section->Address + LinkAddress),
(1U << Section->Alignment)
(UINT64)(1U << Section->Alignment)
);
Value -= Section->Address;
//