From: Oliver Scherer Date: Mon, 18 Feb 2019 12:55:55 +0000 (+0100) Subject: No magic numbers X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=1e3d1b65c500a33993462c84ecb80136d184acb2;p=rust.git No magic numbers --- diff --git a/src/librustc/mir/interpret/allocation.rs b/src/librustc/mir/interpret/allocation.rs index 06d5f27ccd7..18880c551ed 100644 --- a/src/librustc/mir/interpret/allocation.rs +++ b/src/librustc/mir/interpret/allocation.rs @@ -683,7 +683,7 @@ pub fn set_range_inbounds(&mut self, start: Size, end: Size, new_state: bool) { // fill in all the other blocks (much faster than one bit at a time) if new_state { for block in (blocka + 1) .. blockb { - self.blocks[block] = 0xFFFF_FFFF_FFFF_FFFF; + self.blocks[block] = u64::max_value(); } } else { for block in (blocka + 1) .. blockb {