diff --git a/Library/OcAppleKernelLib/Link.c b/Library/OcAppleKernelLib/Link.c index 42617dbf..2e594aca 100644 --- a/Library/OcAppleKernelLib/Link.c +++ b/Library/OcAppleKernelLib/Link.c @@ -1154,7 +1154,7 @@ InternalProcessSymbolPointers ( return TRUE; } - NumSymbols = (Section->Size / sizeof (MACH_NLIST_64)); + NumSymbols = (UINT32)(Section->Size / sizeof (MACH_NLIST_64)); FirstSym = Section->Reserved1; Result = OcOverflowAddU32 (FirstSym, NumSymbols, &OffsetTop); diff --git a/Library/OcMachoLib/Header.c b/Library/OcMachoLib/Header.c index b7717231..1737f5c1 100644 --- a/Library/OcMachoLib/Header.c +++ b/Library/OcMachoLib/Header.c @@ -1379,7 +1379,7 @@ MachoExpandImage64 ( } } - CurrentDelta = OriginalDelta + Segment->Size - Segment->FileSize; + CurrentDelta = OriginalDelta + (UINT32)(Segment->Size - Segment->FileSize); } if (Strip) {