Skip to content

Commit

Permalink
Fix an improper debug assert deep in RawYarn
Browse files Browse the repository at this point in the history
  • Loading branch information
mcy committed Aug 31, 2023
1 parent 387e115 commit c30c342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "byteyarn"
version = "0.2.0"
version = "0.2.1"
edition = "2021"

authors = ["Miguel Young de la Sota <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion src/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ impl RawYarn {
ptr: *const u8,
len: usize,
) -> Self {
debug_assert!(len < Self::SSO_LEN);
debug_assert!(len <= Self::SSO_LEN);

let mut small = Small {
len: (len as u8) << 2 | Self::SMALL,
Expand Down

0 comments on commit c30c342

Please sign in to comment.