diff options
author | Antonio Larrosa <antonio.larrosa@gmail.com> | 2021-04-20 15:26:12 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2021-04-20 15:26:12 +0300 |
commit | e0b577fe1d96779cac8b2bdd365f84c008232246 (patch) | |
tree | 31037b081cf43d6e5e4b56f72ad4b3bd9b1e2c13 /generic/sodium/src/encrypter/imp.rs | |
parent | 61214b57881cd0f487f7536489c5001f8c9bcfee (diff) |
csound: Fix cast to f64 so it builds in i586
For some reason (compiler bug?), the rust compiler fails to compare u32 and f64 types
when doing a wildcard cast on i586 with the following error:
error[E0282]: type annotations needed
--> audio/csound/src/filter/imp.rs:611:47
|
611 | if rate != out_info.rate() || rate != csound.get_sample_rate() as _ {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
|
= note: type must be known at this point
Using an explicit cast solves the issue.
Diffstat (limited to 'generic/sodium/src/encrypter/imp.rs')
0 files changed, 0 insertions, 0 deletions