Skip to content

Commit

Permalink
Auto merge of #60013 - NieDzejkob:fix-16bit-usize, r=sanxiyn
Browse files Browse the repository at this point in the history
Fix the max value of usize on 16-bit platforms
  • Loading branch information
bors committed Apr 17, 2019
2 parents 6ed6f14 + d9c42d5 commit 8260e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4323,7 +4323,7 @@ impl u128 {
#[cfg(target_pointer_width = "16")]
#[lang = "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]" }
}
#[cfg(target_pointer_width = "32")]
Expand Down

0 comments on commit 8260e96

Please sign in to comment.