Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed order of calloc args to match stdlib #563

Merged
merged 2 commits into from Apr 3, 2020
Merged

Conversation

robybeen
Copy link
Contributor

@robybeen robybeen commented Apr 2, 2020

Although it is currently working, it's worth to stick with the stdlib definition to avoid further problems

Although it is currently working, it's worth to stick with the stdlib definition to avoid further problems
Although it is currently working, it's worth to stick with the stdlib definition to avoid further problems
@coveralls
Copy link

Coverage Status

Coverage remained the same at 84.213% when pulling 5d9b8e0 on robybeen:master into 6afcf16 on json-c:master.

@hawicz
Copy link
Member

hawicz commented Apr 3, 2020

eh... "further problems" seem quite unlikely, but I guess if you're on a system that cares about alignment, and that won't give you a maximally aligned chunk of memory when the second argument to calloc is small, then perhaps this might help. Doesn't hurt, so I'll merge it.

@hawicz hawicz merged commit ed54353 into json-c:master Apr 3, 2020
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.

None yet

3 participants