summaryrefslogtreecommitdiffstats
path: root/test/dt_arith.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2022-04-25 17:16:18 (GMT)
committerGitHub <noreply@github.com>2022-04-25 17:16:18 (GMT)
commit2b323159a7e6be0cfa7bd996de945e2d44fc721d (patch)
tree20d4ff81fbff743f04503178c303d7189c1f08e5 /test/dt_arith.c
parentc8b87fa3200228b8689f77d325646d6f77502cfa (diff)
downloadhdf5-2b323159a7e6be0cfa7bd996de945e2d44fc721d.zip
hdf5-2b323159a7e6be0cfa7bd996de945e2d44fc721d.tar.gz
hdf5-2b323159a7e6be0cfa7bd996de945e2d44fc721d.tar.bz2
Warnings fixes (#1680)
Diffstat (limited to 'test/dt_arith.c')
-rw-r--r--test/dt_arith.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dt_arith.c b/test/dt_arith.c
index 993048a..d73dc4e 100644
--- a/test/dt_arith.c
+++ b/test/dt_arith.c
@@ -2694,18 +2694,18 @@ my_isnan(dtype_t type, void *val)
if (FLT_FLOAT == type) {
float x = 0.0;
HDmemcpy(&x, val, sizeof(float));
- retval = (x != x);
+ retval = !H5_FLT_ABS_EQUAL(x, x);
}
else if (FLT_DOUBLE == type) {
double x = 0.0;
HDmemcpy(&x, val, sizeof(double));
- retval = (x != x);
+ retval = !H5_DBL_ABS_EQUAL(x, x);
#if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE
}
else if (FLT_LDOUBLE == type) {
long double x = 0.0L;
HDmemcpy(&x, val, sizeof(long double));
- retval = (x != x);
+ retval = !H5_LDBL_ABS_EQUAL(x, x);
#endif
}
else {