about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Kądziołka <kuba@kadziolka.net>2019-04-16 18:55:58 +0200
committerJakub Kądziołka <kuba@kadziolka.net>2019-04-16 18:55:58 +0200
commitd9c42d5c84bf32183b9be3e6b1860d507279b0cc (patch)
treece126f04832d775c27477fe862b42bf6a7b0008e
parent3b27b4f592e0654602d8b81cc471204abc2d563e (diff)
downloadrust-d9c42d5c84bf32183b9be3e6b1860d507279b0cc.tar.gz
rust-d9c42d5c84bf32183b9be3e6b1860d507279b0cc.zip
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")]