Skip to content

Commit

Permalink
msvc aligned_malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
jll63 committed Feb 3, 2024
1 parent 74ed7a3 commit 5d550c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference.in/vptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ multi-methods.

namespace std {
void* aligned_alloc(size_t alignment, size_t size) {
return _aligned_malloc(page_size, page_size);
return _aligned_malloc(size, alignment);
}
} // namespace std

Expand Down

0 comments on commit 5d550c8

Please sign in to comment.