Skip to content

Commit

Permalink
Merge pull request orangeduck#69 from villager10086/fix-gcc-build-error
Browse files Browse the repository at this point in the history
fix build error with gcc 5.4
  • Loading branch information
orangeduck authored Mar 14, 2017
2 parents eedcb68 + 6fce66b commit e3d2174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2256,7 +2256,7 @@ mpc_val_t *mpcf_oct(mpc_val_t *x) {

mpc_val_t *mpcf_float(mpc_val_t *x) {
float *y = malloc(sizeof(float));
*y = strtof(x, NULL);
*y = strtod(x, NULL);
free(x);
return y;
}
Expand Down

0 comments on commit e3d2174

Please sign in to comment.