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 Aug 31, 2024
1 parent ebab1d2 commit 07b6e66
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 @@ -1090,7 +1090,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 07b6e66

Please sign in to comment.