Skip to content

Commit 4eeab35

Browse files
authored
Add missing IntLike implementation
For u128 type.
1 parent 9b2bf22 commit 4eeab35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/tock-register-interface/src/registers.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ impl IntLike for u64 {
9999
0
100100
}
101101
}
102+
impl IntLike for u128 {
103+
fn zero() -> Self {
104+
0
105+
}
106+
}
102107

103108
/// Descriptive name for each register.
104109
pub trait RegisterLongName {}

0 commit comments

Comments
 (0)