You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0308]: mismatched types
--> src/lib.rs:148:69
|
148 | match unsafe { ffi::fvad_process(self.fvad, frame.as_ptr(), frame.len() as u64) } {
| ^^^^^^^^^^^^^^^^^^ expected `u32`, found `u64`
|
help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit
|
148 | match unsafe { ffi::fvad_process(self.fvad, frame.as_ptr(), (frame.len() as u64).try_into().unwrap()) } {
| + +++++++++++++++++++++
For more information about this error, try `rustc --explain E0308`.
How to reproduce
Unless you have a capable ARMv7 thing lying around, it'll probably be more convenient to cross-compile to reproduce this.
I don't know how this is meant to be solved. There might be some bindgen trick that I'm not aware of (it seems like it should be typed at usize??) or maybe the source code just has to be 'coincidentally compatible' with both u32 and u64...?
The text was updated successfully, but these errors were encountered:
I think the simple answer is to enable some size_t_is_usize option and say sorry to the people who are using a rare platform where that doesn't hold true :/.
How to reproduce
Unless you have a capable ARMv7 thing lying around, it'll probably be more convenient to cross-compile to reproduce this.
Install cross:
Clone the repo and cd into it:
Create
armv7.Dockerfile
in the same directory:Build:
docker build -t unpublished:armv7-unknown-linux-gnueabihf -f armv7.Dockerfile .
Create
Cross.toml
in the same directory:Build with Cross:
I don't know how this is meant to be solved. There might be some bindgen trick that I'm not aware of (it seems like it should be typed at
usize
??) or maybe the source code just has to be 'coincidentally compatible' with bothu32
andu64
...?The text was updated successfully, but these errors were encountered: