Skip to content

Commit 3da0b34

Browse files
committed
optee-teec: fix bugs of ParamTypes::into_flags
1 parent ac16b83 commit 3da0b34

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/optee-teec/src/parameter.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ impl ParamTypes {
241241

242242
pub fn into_flags(&self) -> (ParamType, ParamType, ParamType, ParamType) {
243243
(
244-
(0x000fu32 & self.0).into(),
245-
(0x00f0u32 & self.0).into(),
246-
(0x0f00u32 & self.0).into(),
247-
(0xf000u32 & self.0).into(),
244+
(0x000f_u32 & self.0).into(),
245+
((0x00f0_u32 & self.0) >> 4).into(),
246+
((0x0f00_u32 & self.0) >> 8).into(),
247+
((0xf000_u32 & self.0) >> 12).into(),
248248
)
249249
}
250250
}

0 commit comments

Comments
 (0)