]> git.lizzy.rs Git - rust.git/commitdiff
No magic numbers
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Mon, 18 Feb 2019 12:55:55 +0000 (13:55 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Mon, 4 Mar 2019 16:10:02 +0000 (17:10 +0100)
src/librustc/mir/interpret/allocation.rs

index 06d5f27ccd74400c804cf33b1907540ad2e8844b..18880c551ed55ff8f72baa53eed112c39dd586d4 100644 (file)
@@ -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 {