aboutsummaryrefslogtreecommitdiff
path: root/src/parser_impls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser_impls.rs')
-rw-r--r--src/parser_impls.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser_impls.rs b/src/parser_impls.rs
index c49c876..28ef8de 100644
--- a/src/parser_impls.rs
+++ b/src/parser_impls.rs
@@ -193,7 +193,7 @@ where
while buf.len() - pos > pad_netlink_object::<nlattr>() {
let nlattr = unsafe { *transmute::<*const u8, *const nlattr>(buf[pos..].as_ptr()) };
// ignore the byteorder and nested attributes
- let nla_type = nlattr.nla_type & NLA_TYPE_MASK as u16;
+ let nla_type: u32 = (nlattr.nla_type & NLA_TYPE_MASK as u16).into();
if nla_type != NFTA_LIST_ELEM {
return Err(DecodeError::UnsupportedAttributeType(nla_type));