Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build on 32-bit architectures #273

Open
jbeich opened this issue Apr 19, 2023 · 0 comments
Open

Fails to build on 32-bit architectures #273

jbeich opened this issue Apr 19, 2023 · 0 comments

Comments

@jbeich
Copy link

jbeich commented Apr 19, 2023

$ rustc -vV
rustc 1.68.2 (9eb3afe9e 2023-03-27) (built from a source tarball)
binary: rustc
commit-hash: 9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0
commit-date: 2023-03-27
host: i686-unknown-freebsd
release: 1.68.2
LLVM version: 15.0.6

$ git checkout v0.10.0
$ cd replibyte
$ cargo build
[...]
error: literal out of range for `usize`
  --> replibyte/src/utils.rs:29:24
   |
29 |         1024_000_000..=1023_999_999_999 => format!("{:.2} MB", bytes / 1_000_000_000),
   |                        ^^^^^^^^^^^^^^^^
   |
   = note: the literal `1023_999_999_999` does not fit into the type `usize` whose range is `0..=4294967295`
   = note: `#[deny(overflowing_literals)]` on by default

error: literal out of range for `usize`
  --> replibyte/src/utils.rs:30:9
   |
30 |         1024_000_000_000..=1023_999_999_999_999 => format!("{:.2} GB", bytes / 1_000_000_000_000),
   |         ^^^^^^^^^^^^^^^^
   |
   = note: the literal `1024_000_000_000` does not fit into the type `usize` whose range is `0..=4294967295`

error: literal out of range for `usize`
  --> replibyte/src/utils.rs:30:28
   |
30 |         1024_000_000_000..=1023_999_999_999_999 => format!("{:.2} GB", bytes / 1_000_000_000_000),
   |                            ^^^^^^^^^^^^^^^^^^^^
   |
   = note: the literal `1023_999_999_999_999` does not fit into the type `usize` whose range is `0..=4294967295`

error: literal out of range for `usize`
  --> replibyte/src/utils.rs:30:80
   |
30 |         1024_000_000_000..=1023_999_999_999_999 => format!("{:.2} GB", bytes / 1_000_000_000_000),
   |                                                                                ^^^^^^^^^^^^^^^^^
   |
   = note: the literal `1_000_000_000_000` does not fit into the type `usize` whose range is `0..=4294967295`

error: literal out of range for `usize`
  --> replibyte/src/utils.rs:31:42
   |
31 |         _ => format!("{:.2} TB", bytes / 1_000_000_000_000_000),
   |                                          ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: the literal `1_000_000_000_000_000` does not fit into the type `usize` whose range is `0..=4294967295`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant