From 05127da0859ae3f02fd02ea5d28af8ebedb0bc3c Mon Sep 17 00:00:00 2001 From: Download-Fritz Date: Sun, 3 Nov 2019 16:46:35 +0100 Subject: [PATCH] OcMachoLib: Add explicit casts to silence MSVC for IA32 targets --- Library/OcAppleKernelLib/Link.c | 4 ++-- Library/OcMachoLib/Symbols.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; //