LiteRT-LM / PATCH.toktrie
SeaWolf-AI's picture
Upload full LiteRT-LM codebase
5f923cd verified
--- src/bytes.rs
+++ src/bytes.rs
@@ -16,5 +16,5 @@
pub fn vec_from_bytes<T: PodTrait>(bytes: &[u8]) -> Vec<T> {
- if !bytes.len().is_multiple_of(size_of::<T>()) {
+ if bytes.len() % size_of::<T>() != 0 {
panic!(
"vecT: got {} bytes, needed multiple of {}",
bytes.len(),