btf: fix regression computing pointer sizes

Computing pointer sizes was broken in 
pull/480/head
Alessandro Decina
parent 890e8c9340
commit 535d72322d

@ -1054,6 +1054,7 @@ impl BtfType {
BtfType::Struct(t) => Some(t.size),
BtfType::Union(t) => Some(t.size),
BtfType::DataSec(t) => Some(t.size),
BtfType::Ptr(_) => Some(mem::size_of::<&()>() as u32),
_ => None,
}
}

Loading…
Cancel
Save