Skip to content

Commit

Permalink
simd-alignment
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
  • Loading branch information
Licenser committed Sep 11, 2024
1 parent 4a4c628 commit 83a4aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ impl AlignedBuf {
if mem::size_of::<usize>() < 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(),
};
Expand Down

0 comments on commit 83a4aec

Please sign in to comment.