diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2015-04-21 14:58:43 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2015-04-21 14:58:43 (GMT) |
commit | 65b3bc2a937337239ceede5e39261c6b2ba4dc69 (patch) | |
tree | c6139980f34978fefe3fad3c756d4916f4d7d389 /test/tattr.c | |
parent | 3f36df51d845a93e94fff264fa22ad60a71db754 (diff) | |
download | hdf5-65b3bc2a937337239ceede5e39261c6b2ba4dc69.zip hdf5-65b3bc2a937337239ceede5e39261c6b2ba4dc69.tar.gz hdf5-65b3bc2a937337239ceede5e39261c6b2ba4dc69.tar.bz2 |
[svn-r26861] Bring revisions #26401 - #26459 from trunk to revise_chunks.
h5committested.
Diffstat (limited to 'test/tattr.c')
-rw-r--r-- | test/tattr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tattr.c b/test/tattr.c index 57d19ff..31a3844 100644 --- a/test/tattr.c +++ b/test/tattr.c @@ -523,7 +523,7 @@ test_attr_flush(hid_t fapl) CHECK(ret, FAIL, "H5Awrite"); if(!DBL_ABS_EQUAL(rdata,0.0F)) - TestErrPrintf("attribute value wrong: rdata=%f, should be %f\n",rdata,0.0F); + TestErrPrintf("attribute value wrong: rdata=%f, should be %f\n",rdata,(double)0.0F); ret=H5Fflush(fil, H5F_SCOPE_GLOBAL); CHECK(ret, FAIL, "H5Fflush"); @@ -532,7 +532,7 @@ test_attr_flush(hid_t fapl) CHECK(ret, FAIL, "H5Awrite"); if(!DBL_ABS_EQUAL(rdata,0.0F)) - TestErrPrintf("attribute value wrong: rdata=%f, should be %f\n",rdata,0.0F); + TestErrPrintf("attribute value wrong: rdata=%f, should be %f\n",rdata,(double)0.0F); ret=H5Awrite(att, H5T_NATIVE_DOUBLE, &wdata); CHECK(ret, FAIL, "H5Awrite"); @@ -1016,7 +1016,7 @@ test_attr_scalar_read(hid_t fapl) /* Verify the floating-poing value in this way to avoid compiler warning. */ if(!FLT_ABS_EQUAL(rdata, attr_data5)) printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", - "H5Aread", attr_data5, rdata, (int)__LINE__, __FILE__); + "H5Aread", (double)attr_data5, (double)rdata, (int)__LINE__, __FILE__); /* Get the attribute's dataspace */ sid = H5Aget_space(attr); |