[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp
Reid Spencer
reid at x10sys.com
Sun Nov 5 11:26:51 PST 2006
Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.279 -> 1.280
---
Log message:
Fix a bug in the last patch and convert to && instead of & for logical expr.
---
Diffs of the changes: (+2 -2)
Writer.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.279 llvm/lib/Target/CBackend/Writer.cpp:1.280
--- llvm/lib/Target/CBackend/Writer.cpp:1.279 Sun Nov 5 11:09:41 2006
+++ llvm/lib/Target/CBackend/Writer.cpp Sun Nov 5 13:26:37 2006
@@ -534,7 +534,7 @@
// only deal in IEEE FP).
//
static bool isFPCSafeToPrint(const ConstantFP *CFP) {
-#if HAVE_PRINTF_A & ENABLED_CBE_PRINTF_A
+#if HAVE_PRINTF_A && ENABLE_CBE_PRINTF_A
char Buffer[100];
sprintf(Buffer, "%a", CFP->getValue());
@@ -726,7 +726,7 @@
<< " /*inf*/ ";
} else {
std::string Num;
-#if HAVE_PRINTF_A & ENABLE_CBE_PRINTF_A
+#if HAVE_PRINTF_A && ENABLE_CBE_PRINTF_A
// Print out the constant as a floating point number.
char Buffer[100];
sprintf(Buffer, "%a", FPC->getValue());
More information about the llvm-commits
mailing list