Details
Details
- Reviewers
MaskRay
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This is an unnecessary change. The arguments are interchangeable.
In musl, there are at least 2 places where the parameters could be swapped, but I not unsure this warrants a commit.
Comment Actions
Isn't the memory alignment dependent on the element size in general? In this case it might be a potential correctness issue fix.
I understand that many calloc implementations may align them to works-for-all boundary, but it may still worth be "fixing".
Comment Actions
No. The two arguments are interchangeable. Neither argument affects the alignment. Use aligned_alloc to control alignment.