Kaynağa Gözat

Return memory_map entries as u64, to support 32-bit targets

roblabla 6 yıl önce
ebeveyn
işleme
7d0291754a
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 4 4
      src/memory_map.rs

+ 4 - 4
src/memory_map.rs

@@ -30,12 +30,12 @@ pub struct MemoryArea {
 }
 
 impl MemoryArea {
-    pub fn start_address(&self) -> usize {
-        self.base_addr as usize
+    pub fn start_address(&self) -> u64 {
+        self.base_addr
     }
 
-    pub fn end_address(&self) -> usize {
-        (self.base_addr + self.length) as usize
+    pub fn end_address(&self) -> u64 {
+        (self.base_addr + self.length)
     }
 
     pub fn size(&self) -> usize {