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

Incompatible type assignment #17

Closed
RobLoach opened this issue Apr 23, 2018 · 1 comment
Closed

Incompatible type assignment #17

RobLoach opened this issue Apr 23, 2018 · 1 comment

Comments

@RobLoach
Copy link
Contributor

semver.c:116:8: error: assigning to 'char *' from incompatible type 'void *'
  part = calloc(plen + 1, sizeof(*part));
       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
semver.c:146:7: error: assigning to 'char *' from incompatible type 'void *'
  buf = calloc(len + 1, sizeof(*buf));
      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

May need to set the value, and then cast it afterwards.

@h2non
Copy link
Owner

h2non commented Apr 23, 2018

It should be fixed in: #18.

@h2non h2non closed this as completed Apr 23, 2018
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

No branches or pull requests

2 participants