mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 16:51:33 +11:00
Use constants rather than hard coded stuff
This commit is contained in:
parent
81e9789272
commit
c8ac436b84
|
@ -85,7 +85,7 @@ mod test {
|
||||||
|
|
||||||
let address = &*first_box as *const _ as usize;
|
let address = &*first_box as *const _ as usize;
|
||||||
assert!(
|
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}",
|
"ewram is located between 0x0200_0000 and 0x0204_0000, address was actually found to be {:#010X}",
|
||||||
address
|
address
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue