Skip to content

Commit 5e56c5c

Browse files
committed
simd-alignment
Signed-off-by: Heinz N. Gies <[email protected]>
1 parent 2ac6ed8 commit 5e56c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ impl AlignedBuf {
989989
if mem::size_of::<usize>() < 8 && capacity > isize::MAX as usize {
990990
Self::capacity_overflow()
991991
}
992-
let layout = match Layout::from_size_align(capacity, SIMDINPUT_LENGTH) {
992+
let layout = match Layout::from_size_align(capacity, SIMDJSON_PADDING) {
993993
Ok(layout) => layout,
994994
Err(_) => Self::capacity_overflow(),
995995
};

0 commit comments

Comments
 (0)