Skip to content

Commit

Permalink
Update commons/zenoh-shm/src/api/provider/types.rs
Browse files Browse the repository at this point in the history
wyfo's addition

Co-authored-by: Joseph Perez <[email protected]>
  • Loading branch information
yellowhatter and wyfo authored Jul 16, 2024
1 parent e829cfd commit daf7d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commons/zenoh-shm/src/api/provider/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl AllocAlignment {
#[zenoh_macros::unstable_doc]
pub fn new(pow: u8) -> Result<Self, ZLayoutError> {
match pow {
pow if pow < 64 => Ok(Self { pow }),
pow if pow < usize::BITS as u8 => Ok(Self { pow }),
_ => Err(ZLayoutError::IncorrectLayoutArgs),
}
}
Expand Down

0 comments on commit daf7d57

Please sign in to comment.