about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-04-17 16:23:25 +0000
committerbors <bors@rust-lang.org>2019-04-17 16:23:25 +0000
commit8260e9676089363648dfbce072fca562093b4289 (patch)
tree6ef788c57c09da7292c591c8fd6a51192a817864
parent6ed6f1461dd0d89c85a334f8d8ce7957611f2dfe (diff)
parentd9c42d5c84bf32183b9be3e6b1860d507279b0cc (diff)
downloadrust-8260e9676089363648dfbce072fca562093b4289.tar.gz
rust-8260e9676089363648dfbce072fca562093b4289.zip
Auto merge of #60013 - NieDzejkob:fix-16bit-usize, r=sanxiyn
Fix the max value of usize on 16-bit platforms
-rw-r--r--src/libcore/num/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 01da5518868..b372bd3cb07 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -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")]