llvm.org GIT mirror llvm / 6d5e7d9
fix reversal bug in preceding checkin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41705 91177308-0d34-0410-b5e6-96231b3b80d8 Dale Johannesen 12 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
9393 }
9494
9595 static inline std::string ftostr(const APFloat& V) {
96 if (&V.getSemantics() == &APFloat::IEEEsingle)
96 if (&V.getSemantics() == &APFloat::IEEEdouble)
9797 return ftostr(V.convertToDouble());
98 else if (&V.getSemantics() == &APFloat::IEEEdouble)
98 else if (&V.getSemantics() == &APFloat::IEEEsingle)
9999 return ftostr((double)V.convertToFloat());
100100 return 0; // error
101101 }