aboutsummaryrefslogtreecommitdiff
path: root/libcore/num/uint_macros.rs
diff options
context:
space:
mode:
authorpravic <[email protected]>2016-06-06 23:05:39 +0300
committerpravic <[email protected]>2016-06-06 23:05:39 +0300
commitddc401e0bf4f972bc2916601797d12bb97c5f1dc (patch)
tree8aa799e4fdf089c5060f3ea8b567943681603b85 /libcore/num/uint_macros.rs
parentupdate libcore to 2016-04-29 nightly (diff)
downloadkmd-env-rs-ddc401e0bf4f972bc2916601797d12bb97c5f1dc.tar.xz
kmd-env-rs-ddc401e0bf4f972bc2916601797d12bb97c5f1dc.zip
update to 2016-06-06
Diffstat (limited to 'libcore/num/uint_macros.rs')
-rw-r--r--libcore/num/uint_macros.rs6
1 files changed, 3 insertions, 3 deletions
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();
) }