Fix bogus assert condition noticed by Csaba Raduly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124645 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2011-02-01 01:50:49 +00:00
parent 8e2da0ce9d
commit e087afa128

View File

@ -185,8 +185,8 @@ public:
if (is64Bit())
Write32(0); // reserved
assert(OS.tell() - Start == is64Bit() ?
macho::Header64Size : macho::Header32Size);
assert(OS.tell() - Start ==
(is64Bit() ? macho::Header64Size : macho::Header32Size));
}
/// WriteSegmentLoadCommand - Write a segment load command.