From 5e56c5c1723bc76ec26a6ac47d20f42de23b86e5 Mon Sep 17 00:00:00 2001 From: "Heinz N. Gies" Date: Sat, 31 Aug 2024 21:59:34 +0200 Subject: [PATCH] simd-alignment Signed-off-by: Heinz N. Gies --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 8736b5c2..00c3b7fe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -989,7 +989,7 @@ impl AlignedBuf { if mem::size_of::() < 8 && capacity > isize::MAX as usize { Self::capacity_overflow() } - let layout = match Layout::from_size_align(capacity, SIMDINPUT_LENGTH) { + let layout = match Layout::from_size_align(capacity, SIMDJSON_PADDING) { Ok(layout) => layout, Err(_) => Self::capacity_overflow(), };