From c30c3426fe472b7fa3a535e38719f794882e204b Mon Sep 17 00:00:00 2001 From: Miguel Young de la Sota Date: Thu, 31 Aug 2023 17:04:28 -0400 Subject: [PATCH] Fix an improper debug assert deep in RawYarn --- Cargo.toml | 2 +- src/raw.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a8e29a8..19d88db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "byteyarn" -version = "0.2.0" +version = "0.2.1" edition = "2021" authors = ["Miguel Young de la Sota "] diff --git a/src/raw.rs b/src/raw.rs index be6371c..27e32c1 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -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,