projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NAN: use __builtin_nanf() if not available
[fio.git]
/
parse.c
diff --git
a/parse.c
b/parse.c
index 18c4530183dbb7b74ca4b97a2e6edf3e181c9595..d15d22ba3f7ed03a68e77614a02b44616d64daa5 100644
(file)
--- a/
parse.c
+++ b/
parse.c
@@
-1096,6
+1096,9
@@
void option_init(struct fio_option *o)
o->maxval = UINT_MAX;
}
if (o->type == FIO_OPT_FLOAT_LIST) {
+#ifndef NAN
+#define NAN __builtin_nanf("")
+#endif
o->minfp = NAN;
o->maxfp = NAN;
}