[llvm-commits] CVS: llvm/lib/CodeGen/MachOWriter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Sep 2 10:37:44 PDT 2006
Changes in directory llvm/lib/CodeGen:
MachOWriter.cpp updated: 1.3 -> 1.4
---
Log message:
improve compat with certain versions of GCC (on cygwin?)
---
Diffs of the changes: (+1 -1)
MachOWriter.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/CodeGen/MachOWriter.cpp
diff -u llvm/lib/CodeGen/MachOWriter.cpp:1.3 llvm/lib/CodeGen/MachOWriter.cpp:1.4
--- llvm/lib/CodeGen/MachOWriter.cpp:1.3 Sat Aug 26 10:46:34 2006
+++ llvm/lib/CodeGen/MachOWriter.cpp Sat Sep 2 12:37:30 2006
@@ -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.
More information about the llvm-commits
mailing list