From 4220982e90bfd0ad059c6d8af47354f12707e98b Mon Sep 17 00:00:00 2001 From: fawdlstty Date: Mon, 5 Aug 2024 22:14:13 +0800 Subject: [PATCH] fix build failed in target: armv7-unknown-linux-gnueabihf --- mappings/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mappings/src/lib.rs b/mappings/src/lib.rs index 765fe44..2ac909c 100644 --- a/mappings/src/lib.rs +++ b/mappings/src/lib.rs @@ -148,7 +148,7 @@ mod enabled { for ph in program_headers { if ph.p_type == PT_LOAD { loaded_segments.push(LoadedSegment { - file_offset: ph.p_offset, + file_offset: u64::cast_from(ph.p_offset), memory_offset: usize::cast_from(ph.p_vaddr), memory_size: usize::cast_from(ph.p_memsz), });