Skip to content

Commit 3aad36b

Browse files
committed
simd-alignment
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
1 parent 76c5a43 commit 3aad36b

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)