Commit 714c544
committed
Audio: Format: Add macro to convert fraction to double
The usage of Q_CONVERT_QTOF() causes build issue with llvm
toolchain when assigned to double type in ztest code:
error: implicit conversion increases floating-point precision:
'float' to 'double' [-Werror,-Wdouble-promotion]
Since a double is needed to match the accuracy of 32 bit fraction,
a new macro Q_CONVERT_QTOD() is added for the the purpose.
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>1 parent cdb7f02 commit 714c544
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