pull/1343/merge
Mikhail Solovev 7 hours ago committed by GitHub
commit b818f41b07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -809,7 +809,7 @@ impl<'a> AccessSpec<'a> {
let parent = accessors.last().unwrap();
let parent_ty = btf.type_by_id(parent.type_id)?;
match parent_ty {
BtfType::Struct(s) => index == s.members.len() - 1,
BtfType::Struct(s) => parent.index == s.members.len() - 1,
_ => false,
}
};

Loading…
Cancel
Save