mirror of
https://github.com/curl/curl.git
synced 2026-08-08 08:12:56 +03:00
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:
parent
1de60b18de
commit
703efb3379
3 changed files with 7 additions and 6 deletions
|
|
@ -218,7 +218,7 @@ ParameterError str2unummax(long *val, const char *str, long max)
|
|||
* data.
|
||||
*/
|
||||
|
||||
static ParameterError str2double(double *val, const char *str, long max)
|
||||
static ParameterError str2double(double *val, const char *str, double max)
|
||||
{
|
||||
if(str) {
|
||||
char *endptr;
|
||||
|
|
@ -251,7 +251,7 @@ static ParameterError str2double(double *val, const char *str, long max)
|
|||
* data.
|
||||
*/
|
||||
|
||||
ParameterError str2udouble(double *valp, const char *str, long max)
|
||||
ParameterError str2udouble(double *valp, const char *str, double max)
|
||||
{
|
||||
double value;
|
||||
ParameterError result = str2double(&value, str, max);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue