summaryrefslogtreecommitdiffstats
path: root/test/hyperslab.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-03-01 19:44:32 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-03-01 19:44:32 (GMT)
commitb3ddd2cc5428b052ca26b36634b64be21032a330 (patch)
treed29670f49933b5259ca1cfd2a959f336ccb4bf5d /test/hyperslab.c
parent90d07791d37f965638b96eb2b4ad48b60708a9dc (diff)
downloadhdf5-b3ddd2cc5428b052ca26b36634b64be21032a330.zip
hdf5-b3ddd2cc5428b052ca26b36634b64be21032a330.tar.gz
hdf5-b3ddd2cc5428b052ca26b36634b64be21032a330.tar.bz2
[svn-r1110] Changes since 19990226
---------------------- ./INSTALL Added instructions for using other compilers on Irix platforms. ./configure.in ./configure [REGENERATED] ./src/H5config.h.in [REGENERATED] ./src/H5private.h The presence of <sys/sysinfo.h> and <sys/proc.h> is only checked on DEC/Alpha because there are too many problems including these headers on other systems. ./config/irix6.x ./config/irix64 Removed `-ansi' and added a comment. Converting an ASCII UTC date and time to a time_t value is not defined by ANSI or Posix but is available if we don't use `-ansi'. This allows the dataset modification time messages to be read properly by H5Gget_objinfo(). ./src/H5Tconv.c Fixed a compiler warning. ./test/dtypes.c ./test/hyperslab.c ./test/istore.c Fixed compiler warnings in printf() statements.
Diffstat (limited to 'test/hyperslab.c')
-rw-r--r--test/hyperslab.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/test/hyperslab.c b/test/hyperslab.c
index 01e092c..8b226a6 100644
--- a/test/hyperslab.c
+++ b/test/hyperslab.c
@@ -81,14 +81,14 @@ print_array(uint8_t *array, size_t nx, size_t ny, size_t nz)
for (i=0; i<nx; i++) {
if (nz>1) {
- printf("i=%d:\n", i);
+ printf("i=%lu:\n", (unsigned long)i);
} else {
- printf("%03d:", i);
+ printf("%03lu:", (unsigned long)i);
}
for (j=0; j<ny; j++) {
if (nz>1)
- printf("%03d:", j);
+ printf("%03lu:", (unsigned long)j);
for (k=0; k<nz; k++) {
printf(" %3d", *array++);
}
@@ -253,9 +253,16 @@ test_fill(size_t nx, size_t ny, size_t nz,
*/
AT();
printf(" acc != ref_value\n");
- printf(" i=%d, j=%d, k=%d, "
- "dx=%d, dy=%d, dz=%d, fill=%d\n",
- i, j, k, dx, dy, dz, fill_value);
+ printf(" i=%lu, j=%lu, k=%lu, "
+ "dx=%lu, dy=%lu, dz=%lu, "
+ "fill=%d\n",
+ (unsigned long)i,
+ (unsigned long)j,
+ (unsigned long)k,
+ (unsigned long)dx,
+ (unsigned long)dy,
+ (unsigned long)dz,
+ fill_value);
print_ref(nx, ny, nz);
printf("\n Result is:\n");
print_array(dst, nx, ny, nz);