Commit f35600f9 authored by Jean-Claude BAU's avatar Jean-Claude BAU Committed by Adam Wujek

Fix minor parameter configuration issues

- The %f format is not supported in pp_printf. So we will not display
the float value in error messages.
- Change DBL_MIN by -DBL_MAX to have the minimum value of a double
parent 1d0c29c0
......@@ -439,7 +439,7 @@ struct pp_argline {
OPTION_CLOSE()
#define INST_OPTION_DOUBLE(k,t,a,field) \
INST_OPTION_DOUBLE_RANGE(k,t,a,field,DBL_MIN,DBL_MAX)
INST_OPTION_DOUBLE_RANGE(k,t,a,field,-DBL_MAX,DBL_MAX)
#define RT_OPTION(func,k,t,a,field) \
OPTION_OPEN() \
......
......@@ -116,7 +116,7 @@ static inline void ASSIGN_DOUBLE_FIELD(struct pp_argline *l,
/* Check min/max */
if ( v<l->min_max.min.min_double || v>l->min_max.max.max_double ) {
pp_printf("Parameter %s(%lf) out of range\n", l->keyword, v);\
pp_printf("Parameter %s out of range\n", l->keyword);\
return;
}
*(double *)( dest + l->field_offset) = v;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment