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 Oct 8, 2024
1 parent 76c5a43 commit 3aad36b
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 @@ -989,7 +989,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(),

Check warning on line 994 in src/lib.rs

View check run for this annotation

Codecov / codecov/patch

src/lib.rs#L994

Added line #L994 was not covered by tests
};
Expand Down

0 comments on commit 3aad36b

Please sign in to comment.