Skip to content

Fix cast to f64 so it builds in i586

Antonio Larrosa requested to merge (removed):fix-i586 into master

For some reason (compiler bug?), the rust compiler fails to compare u32 and f64 types 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.

Edited by Antonio Larrosa

Merge request reports

Loading