diff options
Diffstat (limited to 'src/main/Parameters.c')
-rw-r--r-- | src/main/Parameters.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/Parameters.c b/src/main/Parameters.c index 79f55b72..7db92017 100644 --- a/src/main/Parameters.c +++ b/src/main/Parameters.c @@ -2124,7 +2124,11 @@ static int ParameterSetReal (t_param *param, const char *value) char *endptr; - /* Convert the value string to a double. Allow various formats.*/ + /* + * Canonicalize the string by converting all exponent letters + * (we allow [eEdD]) to 'e', since strtod(3) (which we will use + * to do the actual conversion) only groks [eE]. + */ temp = strdup (value); for (p = 0; p < strlen (temp); p++) { |