mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
fix reversal bug in preceding checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41705 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
418a04ec9b
commit
6d5e7d917b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user