Fix warning about strtod() return value
This commit is contained in:
parent
b49240ec7e
commit
985f4578c6
|
|
@ -100,8 +100,8 @@ static int get_distribution(const char *type, __s16 *data, int maxdata)
|
|||
static int isnumber(const char *arg)
|
||||
{
|
||||
char *p;
|
||||
(void) strtod(arg, &p);
|
||||
return (p != arg);
|
||||
|
||||
return strtod(arg, &p) != 0 || p != arg;
|
||||
}
|
||||
|
||||
#define NEXT_IS_NUMBER() (NEXT_ARG_OK() && isnumber(argv[1]))
|
||||
|
|
|
|||
Loading…
Reference in New Issue