rust-weechat icon indicating copy to clipboard operation
rust-weechat copied to clipboard

Not building on 32bit

Open 0xBYTESHIFT opened this issue 2 years ago • 0 comments

Idk if it's even supported, but here's the log just in case:

Compiling weechat v0.4.0 (https://github.com/poljar/rust-weechat#8209460a) Compiling ruma v0.7.3 Compiling matrix-sdk-common v0.6.0 error[E0308]: mismatched types --> /home/user/.cargo/git/checkouts/rust-weechat-4239b35d876f5f87/8209460/weechat/src/hdata.rs:53:9 | 49 | ) -> i64 { | --- expected i64 because of return type ... 53 | hdata_time(hdata, pointer, name.as_ptr()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i64, found i32 | help: you can convert an i32 to an i64 | 53 | hdata_time(hdata, pointer, name.as_ptr()).into() | +++++++ error[E0308]: mismatched types --> /home/user/.cargo/git/checkouts/rust-weechat-4239b35d876f5f87/8209460/weechat/src/buffer/mod.rs:812:17 | 810 | printf_date_tags( | ---------------- arguments to this function are incorrect 811 | self.ptr(), 812 | date, | ^^^^ expected i32, found i64 | help: you can convert an i64 to an i32 and panic if the converted value doesn't fit | 812 | date.try_into().unwrap(), | ++++++++++++++++++++ error[E0308]: mismatched types --> /home/user/.cargo/git/checkouts/rust-weechat-4239b35d876f5f87/8209460/weechat/src/hooks/timer.rs:129:17 | 127 | hook_timer( | ---------- arguments to this function are incorrect 128 | weechat.ptr, 129 | interval.as_millis() as i64, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found i64 | help: you can convert an i64 to an i32 and panic if the converted value doesn't fit | 129 | (interval.as_millis() as i64).try_into().unwrap(), | + +++++++++++++++++++++ For more information about this error, try rustc --explain E0308. error: could not compile weechat due to 3 previous errors warning: build failed, waiting for other jobs to finish...

and as a picture, because github messed up the whitespaces 2022-11-09-223350_1400x1050_scrot

0xBYTESHIFT avatar Nov 09 '22 20:11 0xBYTESHIFT