Skip to content

Commit

Permalink
fix build failed in target: armv7-unknown-linux-gnueabihf
Browse files Browse the repository at this point in the history
  • Loading branch information
fawdlstty committed Aug 5, 2024
1 parent ca88c0a commit 4220982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mappings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
Expand Down

0 comments on commit 4220982

Please sign in to comment.