Commit ab6bc66
Audio: Format: Add macro to convert fraction to double
The usage of Q_CONVERT_QTOF() causes build issue with llvm
toolchain when assigned to a double type in ztest code:
error: implicit conversion increases floating-point precision:
'float' to 'double' [-Werror,-Wdouble-promotion]
Since a double is needed to fully match the accuracy of 32 bit
fraction, a new macro Q_CONVERT_QTOD() is added for the purpose.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>1 parent adbd6e7 commit ab6bc66
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
0 commit comments