Skip to content

Commit 9a61574

Browse files
authored
Fix compilation error on i686-apple-darwin targets (#371)
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.
1 parent 37ec940 commit 9a61574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/symbolize/gimli/macho.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ impl<'a> Object<'a> {
161161
.filter_map(|nlist: &MachNlist| {
162162
let name = nlist.name(endian, symbols.strings()).ok()?;
163163
if name.len() > 0 && !nlist.is_undefined() {
164-
Some((name, nlist.n_value(endian)))
164+
Some((name, u64::from(nlist.n_value(endian))))
165165
} else {
166166
None
167167
}

0 commit comments

Comments
 (0)