X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=parse.h;h=d68484eaf0c65572352222297162ebd0d20cf7e7;hp=4cf08fd2cf924f84eebd4080709c1ae83246da87;hb=HEAD;hpb=dede9b9fae3ab670c1ca864ac66aea5e997e1f34 diff --git a/parse.h b/parse.h index 4cf08fd2..806a76ee 100644 --- a/parse.h +++ b/parse.h @@ -32,7 +32,7 @@ enum fio_opt_type { */ struct value_pair { const char *ival; /* string option */ - unsigned long long oval;/* output value */ + unsigned long long oval; /* output value */ const char *help; /* help text for sub option */ int orval; /* OR value */ void *cb; /* sub-option callback */ @@ -131,7 +131,7 @@ static inline void *td_var(void *to, const struct fio_option *o, static inline int parse_is_percent(unsigned long long val) { - return val >= -101; + return val >= -101ULL; } #define ZONE_BASE_VAL ((-1ULL >> 1) + 1)