-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
cargo build for NetBSD is failing
Compiling uucore v0.0.25 (/home/axbannaz/Projects/coreutils/src/uucore)
Compiling bigdecimal v0.4.0
error[E0308]: mismatched types
--> src/uucore/src/lib/features/fsext.rs:645:16
|
632 | fn block_size(&self) -> i64 {
| --- expected `i64` because of return type
...
645 | return self.f_bsize;
| ^^^^^^^^^^^^ expected `i64`, found `u64`
|
help: you can convert a `u64` to an `i64` and panic if the converted value doesn't fit
|
645 | return self.f_bsize.try_into().unwrap();
| ++++++++++++++++++++
For more information about this error, try `rustc --explain E0308`.
error: could not compile `uucore` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
I think return self.f_bsize as i64
would fix it. tried it locally was successful.
Metadata
Metadata
Assignees
Labels
No labels