From c8ac436b84db7ed7fe6b9c024376f21c732cdf78 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Mon, 16 Aug 2021 21:20:29 +0100 Subject: [PATCH] Use constants rather than hard coded stuff --- agb/src/agb_alloc/bump_allocator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/agb_alloc/bump_allocator.rs b/agb/src/agb_alloc/bump_allocator.rs index 4c26d44a..ab68757a 100644 --- a/agb/src/agb_alloc/bump_allocator.rs +++ b/agb/src/agb_alloc/bump_allocator.rs @@ -85,7 +85,7 @@ mod test { let address = &*first_box as *const _ as usize; assert!( - address >= 0x0200_0000 && address < 0x0204_0000, + address >= super::EWRAM_START && address < super::EWRAM_END, "ewram is located between 0x0200_0000 and 0x0204_0000, address was actually found to be {:#010X}", address );