mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 01:13:11 +00:00
Auto merge of #60013 - NieDzejkob:fix-16bit-usize, r=sanxiyn
Fix the max value of usize on 16-bit platforms
This commit is contained in:
commit
8260e96760
@ -4323,7 +4323,7 @@ impl u128 {
|
|||||||
#[cfg(target_pointer_width = "16")]
|
#[cfg(target_pointer_width = "16")]
|
||||||
#[lang = "usize"]
|
#[lang = "usize"]
|
||||||
impl usize {
|
impl usize {
|
||||||
uint_impl! { usize, u16, 16, 65536, "", "", 4, "0xa003", "0x3a", "0x1234", "0x3412", "0x2c48",
|
uint_impl! { usize, u16, 16, 65535, "", "", 4, "0xa003", "0x3a", "0x1234", "0x3412", "0x2c48",
|
||||||
"[0x34, 0x12]", "[0x12, 0x34]" }
|
"[0x34, 0x12]", "[0x12, 0x34]" }
|
||||||
}
|
}
|
||||||
#[cfg(target_pointer_width = "32")]
|
#[cfg(target_pointer_width = "32")]
|
||||||
|
Loading…
Reference in New Issue
Block a user