Skip to content

Commit 8260e96

Browse files
committed
Auto merge of #60013 - NieDzejkob:fix-16bit-usize, r=sanxiyn
Fix the max value of usize on 16-bit platforms
2 parents 6ed6f14 + d9c42d5 commit 8260e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/num/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4323,7 +4323,7 @@ impl u128 {
43234323
#[cfg(target_pointer_width = "16")]
43244324
#[lang = "usize"]
43254325
impl usize {
4326-
uint_impl! { usize, u16, 16, 65536, "", "", 4, "0xa003", "0x3a", "0x1234", "0x3412", "0x2c48",
4326+
uint_impl! { usize, u16, 16, 65535, "", "", 4, "0xa003", "0x3a", "0x1234", "0x3412", "0x2c48",
43274327
"[0x34, 0x12]", "[0x12, 0x34]" }
43284328
}
43294329
#[cfg(target_pointer_width = "32")]

0 commit comments

Comments
 (0)