Skip to content

Commit

Permalink
Fix compilation error on i686-apple-darwin targets (#371)
Browse files Browse the repository at this point in the history
symbolize::gimli::macho::Object expects syms to be a Vec<(..., u64)> but on i686 it gets initialized with a Vec<(..., u32)>. This just adds a cast to u64 to the syms generator so it typechecks.
  • Loading branch information
CouleeApps committed Sep 22, 2020
1 parent 37ec940 commit 9a61574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symbolize/gimli/macho.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl<'a> Object<'a> {
.filter_map(|nlist: &MachNlist| {
let name = nlist.name(endian, symbols.strings()).ok()?;
if name.len() > 0 && !nlist.is_undefined() {
Some((name, nlist.n_value(endian)))
Some((name, u64::from(nlist.n_value(endian))))
} else {
None
}
Expand Down

0 comments on commit 9a61574

Please sign in to comment.