From e087afa128211285ee41297fa5fc22fe5f2d3eb1 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 1 Feb 2011 01:50:49 +0000 Subject: [PATCH] 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 --- lib/MC/MachObjectWriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp index aa0178e92ec..1fb0f99ba4c 100644 --- a/lib/MC/MachObjectWriter.cpp +++ b/lib/MC/MachObjectWriter.cpp @@ -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.