Skip to content

Commit

Permalink
Update unicode-inl.h
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Lemire <[email protected]>
  • Loading branch information
anonrig and lemire authored Nov 18, 2024
1 parent a4e2ed3 commit 09a123f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ada/unicode-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ada_really_inline size_t percent_encode_index(const std::string_view input,
size_t i = 0;
for (; i + 8 <= size; i += 8) {
unsigned char chunk[8];
std::memcpy(&chunk, data + i, 8); // Avoid potential alignment issues
std::memcpy(&chunk, data + i, 8); // entices compiler to unconditionally process 8 characters

// Check 8 characters at once
for (size_t j = 0; j < 8; j++) {
Expand Down

0 comments on commit 09a123f

Please sign in to comment.