Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Apr 12, 2019
1 parent 157c9d4 commit c3c0ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/support/strtod.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ JL_DLLEXPORT double jl_strtod_c(const char *nptr, char **endptr)

/* Parse infinities and nans */
val = parse_inf_or_nan(p, endptr);
if (*endptr != nptr)
if (*endptr != p)
return val;

/* Set errno to zero, so that we can distinguish zero results
Expand Down

0 comments on commit c3c0ca3

Please sign in to comment.