Skip to content

Commit 0ee7d6c

Browse files
authored
Merge pull request #13 from fawdlstty/main
fix build failed in target: armv7-unknown-linux-gnueabihf
2 parents 6b380b9 + 4220982 commit 0ee7d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mappings/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ mod enabled {
148148
for ph in program_headers {
149149
if ph.p_type == PT_LOAD {
150150
loaded_segments.push(LoadedSegment {
151-
file_offset: ph.p_offset,
151+
file_offset: u64::cast_from(ph.p_offset),
152152
memory_offset: usize::cast_from(ph.p_vaddr),
153153
memory_size: usize::cast_from(ph.p_memsz),
154154
});

0 commit comments

Comments
 (0)