Skip to content

Commit f740c35

Browse files
committed
fix(tpm): add clarifying parentheses to version check
1 parent 8a0b70a commit f740c35

File tree

1 file changed

+3
-1
lines changed
  • crates/sprout/src/platform

1 file changed

+3
-1
lines changed

crates/sprout/src/platform/tpm.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ impl PlatformTpm {
8585
};
8686

8787
// Check if the TPM supports `GetActivePcrBanks`, and if it doesn't return zero.
88-
if handle.version().major < 1 || handle.version().major == 1 && handle.version().minor < 1 {
88+
if (handle.version().major < 1)
89+
|| (handle.version().major == 1 && (handle.version().minor < 1))
90+
{
8991
return Ok(0);
9092
}
9193

0 commit comments

Comments
 (0)