[llvm-commits] [llvm] r41705 - /llvm/trunk/include/llvm/ADT/StringExtras.h
Dale Johannesen
dalej at apple.com
Tue Sep 4 10:32:27 PDT 2007
Author: johannes
Date: Tue Sep 4 12:32:27 2007
New Revision: 41705
URL: http://llvm.org/viewvc/llvm-project?rev=41705&view=rev
Log:
fix reversal bug in preceding checkin
Modified:
llvm/trunk/include/llvm/ADT/StringExtras.h
Modified: llvm/trunk/include/llvm/ADT/StringExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/StringExtras.h?rev=41705&r1=41704&r2=41705&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/StringExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/StringExtras.h Tue Sep 4 12:32:27 2007
@@ -94,9 +94,9 @@
}
static inline std::string ftostr(const APFloat& V) {
- if (&V.getSemantics() == &APFloat::IEEEsingle)
+ if (&V.getSemantics() == &APFloat::IEEEdouble)
return ftostr(V.convertToDouble());
- else if (&V.getSemantics() == &APFloat::IEEEdouble)
+ else if (&V.getSemantics() == &APFloat::IEEEsingle)
return ftostr((double)V.convertToFloat());
return 0; // error
}
More information about the llvm-commits
mailing list