improve compat with certain versions of GCC (on cygwin?)
llvm-svn: 30054
diff --git a/llvm/lib/CodeGen/MachOWriter.cpp b/llvm/lib/CodeGen/MachOWriter.cpp
index 17001fc..0f6820e 100644
--- a/llvm/lib/CodeGen/MachOWriter.cpp
+++ b/llvm/lib/CodeGen/MachOWriter.cpp
@@ -197,7 +197,7 @@
// desired section alignment, which must be at least as much as required by
// this symbol.
if (Align) {
- Sec.align = std::max(Sec.align, Align);
+ Sec.align = std::max(unsigned(Sec.align), Align);
Sec.size = (Sec.size + Align - 1) & ~(Align-1);
}
// Record the offset of the symbol, and then allocate space for it.