From ddc401e0bf4f972bc2916601797d12bb97c5f1dc Mon Sep 17 00:00:00 2001 From: pravic Date: Mon, 6 Jun 2016 23:05:39 +0300 Subject: update to 2016-06-06 --- libcore/num/uint_macros.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libcore/num/uint_macros.rs') diff --git a/libcore/num/uint_macros.rs b/libcore/num/uint_macros.rs index 6479836..2ab2f95 100644 --- a/libcore/num/uint_macros.rs +++ b/libcore/num/uint_macros.rs @@ -10,13 +10,13 @@ #![doc(hidden)] -macro_rules! uint_module { ($T:ty, $bits:expr) => ( +macro_rules! uint_module { ($T:ident, $bits:expr) => ( #[stable(feature = "rust1", since = "1.0.0")] #[allow(missing_docs)] -pub const MIN: $T = 0 as $T; +pub const MIN: $T = $T::min_value(); #[stable(feature = "rust1", since = "1.0.0")] #[allow(missing_docs)] -pub const MAX: $T = !0 as $T; +pub const MAX: $T = $T::max_value(); ) } -- cgit v1.2.3