projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Format: Modernize using variadic templates.
[oota-llvm.git]
/
lib
/
Support
/
raw_ostream.cpp
diff --git
a/lib/Support/raw_ostream.cpp
b/lib/Support/raw_ostream.cpp
index aa618b9d3923480b123cd5daec8ee351e4a6255d..051e2dd252fa1eb2a49de21040e10b1638558257 100644
(file)
--- a/
lib/Support/raw_ostream.cpp
+++ b/
lib/Support/raw_ostream.cpp
@@
-242,7
+242,7
@@
raw_ostream &raw_ostream::operator<<(double N) {
char buf[16];
unsigned len;
- len =
snprintf(buf, sizeof(buf), "%e", N
);
+ len =
format("%e", N).snprint(buf, sizeof(buf)
);
if (len <= sizeof(buf) - 2) {
if (len >= 5 && buf[len - 5] == 'e' && buf[len - 3] == '0') {
int cs = buf[len - 4];