mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2025-12-26 23:35:53 +00:00
fix heap deallocation
This commit is contained in:
@@ -22,7 +22,7 @@ impl Region {
|
||||
|
||||
fn contains(&self, address: usize) -> bool {
|
||||
let start = self.start.load(Ordering::Relaxed);
|
||||
let end = self.start.load(Ordering::Relaxed);
|
||||
let end = start + self.size.load(Ordering::Relaxed);
|
||||
(start..start + end).contains(&address)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user