[llvm-commits] CVS: llvm/include/Support/StringExtras.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Oct 4 19:42:10 PDT 2003
Changes in directory llvm/include/Support:
StringExtras.h updated: 1.5 -> 1.6
---
Log message:
Output a very high-precision number
---
Diffs of the changes:
Index: llvm/include/Support/StringExtras.h
diff -u llvm/include/Support/StringExtras.h:1.5 llvm/include/Support/StringExtras.h:1.6
--- llvm/include/Support/StringExtras.h:1.5 Tue Sep 30 13:37:23 2003
+++ llvm/include/Support/StringExtras.h Sat Oct 4 19:41:07 2003
@@ -80,7 +80,7 @@
static inline std::string ftostr(double V) {
char Buffer[200];
- snprintf(Buffer, 200, "%e", V);
+ snprintf(Buffer, 200, "%20.6e", V);
return Buffer;
}
More information about the llvm-commits
mailing list