Skip to content

Commit

Permalink
Merge pull request #13 from fawdlstty/main
Browse files Browse the repository at this point in the history
fix build failed in target: armv7-unknown-linux-gnueabihf
  • Loading branch information
umanwizard authored Aug 7, 2024
2 parents 6b380b9 + 4220982 commit 0ee7d6c
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 0ee7d6c

Please sign in to comment.