diff options
author | Dale Johannesen <dalej@apple.com> | 2007-09-04 17:32:27 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-09-04 17:32:27 +0000 |
commit | 6d5e7d917ba1a9e45e0e4f4294a0235fc224d822 (patch) | |
tree | 42721e5c3cfd9c57a9571aa7ef1cfe9dd42e8806 /include/llvm/ADT | |
parent | 418a04ec9bb10e73cd7f0e30ad8fddf7c637bdb9 (diff) | |
download | external_llvm-6d5e7d917ba1a9e45e0e4f4294a0235fc224d822.zip external_llvm-6d5e7d917ba1a9e45e0e4f4294a0235fc224d822.tar.gz external_llvm-6d5e7d917ba1a9e45e0e4f4294a0235fc224d822.tar.bz2 |
fix reversal bug in preceding checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/StringExtras.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index d292607..c7df4b6 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/include/llvm/ADT/StringExtras.h @@ -94,9 +94,9 @@ static inline std::string ftostr(double V) { } 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 } |