提交 05127da0 编写于 作者: D Download-Fritz

OcMachoLib: Add explicit casts to silence MSVC for IA32 targets

上级 c5024de4
......@@ -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)
);
}
......
......@@ -594,7 +594,7 @@ MachoRelocateSymbol64 (
Value = ALIGN_VALUE (
(Section->Address + LinkAddress),
(1U << Section->Alignment)
(UINT64)(1U << Section->Alignment)
);
Value -= Section->Address;
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册