tool_paramhlp: make the max argument a 'double'

To fix compiler warnings "Implicit conversion from 'long' to 'double'
may lose precision"

Closes #9700
This commit is contained in:
Rickard Hallerbäck 2022-10-13 18:50:57 +02:00 committed by Daniel Stenberg
parent 1de60b18de
commit 703efb3379
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 7 additions and 6 deletions

View file

@ -36,7 +36,7 @@ ParameterError str2num(long *val, const char *str);
ParameterError str2unum(long *val, const char *str);
ParameterError oct2nummax(long *val, const char *str, long max);
ParameterError str2unummax(long *val, const char *str, long max);
ParameterError str2udouble(double *val, const char *str, long max);
ParameterError str2udouble(double *val, const char *str, double max);
ParameterError proto2num(struct OperationConfig *config,
const char * const *val, char **obuf,