summaryrefslogtreecommitdiffstats
path: root/test/cross_read.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2011-01-24 19:17:14 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2011-01-24 19:17:14 (GMT)
commit720ce5fb9b5798c1dced9ec440080281ff02c87e (patch)
tree4b06fd4937808336904498787e39ee8809991441 /test/cross_read.c
parent831427aeb8ddf5559e6c7ae758738ddf50da8a7e (diff)
downloadhdf5-720ce5fb9b5798c1dced9ec440080281ff02c87e.zip
hdf5-720ce5fb9b5798c1dced9ec440080281ff02c87e.tar.gz
hdf5-720ce5fb9b5798c1dced9ec440080281ff02c87e.tar.bz2
[svn-r19982] I changed the previous commit from DOUBLE to FLOAT because the bug (2131) happens to FLOAT only. I updated the
data files, too. Tested on linew and jam.
Diffstat (limited to 'test/cross_read.c')
-rwxr-xr-xtest/cross_read.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/cross_read.c b/test/cross_read.c
index e6c6f3c..339ecb2 100755
--- a/test/cross_read.c
+++ b/test/cross_read.c
@@ -32,7 +32,7 @@ const char *FILENAME[] = {
};
#define DATASETNAME "Array"
-#define DATASETNAME2 "Scale_offset_double_data"
+#define DATASETNAME2 "Scale_offset_float_data"
#define DATASETNAME3 "Scale_offset_int_data"
#define NX 6
#define NY 6
@@ -59,8 +59,8 @@ static int read_data(char *fname)
hid_t file, dataset; /* handles */
hid_t datatype;
hid_t dt;
- double data_in[NX][NY]; /* input buffer */
- double data_out[NX][NY]; /* output buffer */
+ float data_in[NX][NY]; /* input buffer */
+ float data_out[NX][NY]; /* output buffer */
int int_data_in[NX][NY]; /* input buffer */
int int_data_out[NX][NY]; /* output buffer */
int i, j;
@@ -145,7 +145,7 @@ static int read_data(char *fname)
PASSED();
- TESTING(" dataset of DOUBLE with scale-offset filter");
+ TESTING(" dataset of FLOAT with scale-offset filter");
#ifdef TMP
#ifdef H5_HAVE_FILTER_SCALEOFFSET
/*
@@ -159,7 +159,7 @@ static int read_data(char *fname)
*/
for (j = 0; j < NX; j++) {
for (i = 0; i < NY; i++) {
- data_in[j][i] = ((double)(i + j + 1))/3;
+ data_in[j][i] = ((float)(i + j + 1))/3;
data_out[j][i] = 0;
}
}