diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-03-28 15:57:49 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-03-30 12:19:11 +0300 |
| commit | 5825c72e730a12efdc0e2d60fb9d40f6f5ea771c (patch) | |
| tree | 532d51b9cdb488b4d0d25196858b22bffc2d2e8a /src/libcore/num/int_macros.rs | |
| parent | f55d03c8d8f5cf76628da771c1f5c4b9a9589c00 (diff) | |
| download | rust-5825c72e730a12efdc0e2d60fb9d40f6f5ea771c.tar.gz rust-5825c72e730a12efdc0e2d60fb9d40f6f5ea771c.zip | |
Change the type of constants BYTES/BITS to usize
Diffstat (limited to 'src/libcore/num/int_macros.rs')
| -rw-r--r-- | src/libcore/num/int_macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/int_macros.rs b/src/libcore/num/int_macros.rs index fe0d6d13c4c..3113521e0af 100644 --- a/src/libcore/num/int_macros.rs +++ b/src/libcore/num/int_macros.rs @@ -15,11 +15,11 @@ macro_rules! int_module { ($T:ty, $bits:expr) => ( // FIXME(#11621): Should be deprecated once CTFE is implemented in favour of // calling the `mem::size_of` function. #[unstable(feature = "core")] -pub const BITS : u32 = $bits; +pub const BITS : usize = $bits; // FIXME(#11621): Should be deprecated once CTFE is implemented in favour of // calling the `mem::size_of` function. #[unstable(feature = "core")] -pub const BYTES : u32 = ($bits / 8); +pub const BYTES : usize = ($bits / 8); // FIXME(#11621): Should be deprecated once CTFE is implemented in favour of // calling the `Bounded::min_value` function. |
