Skip to content

Conversation

puji4810
Copy link
Contributor

No description provided.

@@ -1211,7 +1211,7 @@ class typed_generic_allocator_adapter
}
else
{
return static_cast<T *>(alloc::allocate_aligned(n * sizeof(T), alignof(T)));
return static_cast<T *>(alloc::allocate_aligned(alignof(T), n * sizeof(T)));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the order to match the function signature like

static inline void *allocate_aligned(::std::size_t alignment, ::std::size_t n) noexcept

@trcrsired trcrsired merged commit 87eee28 into cppfastio:master Aug 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants