From 1e3d1b65c500a33993462c84ecb80136d184acb2 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Mon, 18 Feb 2019 13:55:55 +0100 Subject: [PATCH] No magic numbers --- src/librustc/mir/interpret/allocation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.44.0