From 9a61574950a1ad9f54e34a97f22e881a8335a842 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 22 Sep 2020 13:04:43 -0400 Subject: [PATCH] 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. --- src/symbolize/gimli/macho.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/symbolize/gimli/macho.rs b/src/symbolize/gimli/macho.rs index 5cee8fdad..6616f272e 100644 --- a/src/symbolize/gimli/macho.rs +++ b/src/symbolize/gimli/macho.rs @@ -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 }