diff --git a/src/lib.rs b/src/lib.rs index 39dd0c3a..4fe6840e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -988,7 +988,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(), };