Skip to content

Commit 07b6e66

Browse files
committed
simd-alignment
Signed-off-by: Heinz N. Gies <[email protected]>
1 parent ebab1d2 commit 07b6e66

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
@@ -1090,7 +1090,7 @@ impl AlignedBuf {
10901090
if mem::size_of::<usize>() < 8 && capacity > isize::MAX as usize {
10911091
Self::capacity_overflow()
10921092
}
1093-
let layout = match Layout::from_size_align(capacity, SIMDINPUT_LENGTH) {
1093+
let layout = match Layout::from_size_align(capacity, SIMDJSON_PADDING) {
10941094
Ok(layout) => layout,
10951095
Err(_) => Self::capacity_overflow(),
10961096
};

0 commit comments

Comments
 (0)