Merge pull request #69 from villager10086/fix-gcc-build-error

fix build error with gcc 5.4
This commit is contained in:
Daniel Holden
2017-03-14 13:12:53 +00:00
committed by GitHub

2
mpc.c
View File

@@ -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;
}