summaryrefslogtreecommitdiffstats
path: root/test/dtypes.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/dtypes.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/dtypes.c')
-rw-r--r--test/dtypes.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index 0047560..04e5737 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -2088,7 +2088,8 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
for (k=0; k<src_size; k++) {
printf(" %02x", saved[j*src_size+ENDIAN(src_size, k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)dst_size-(ssize_t)src_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)dst_size-(ssize_t)src_size)),
+ "");
switch (src_type) {
case INT_CHAR:
memcpy(aligned, saved+j*sizeof(char), sizeof(signed char));
@@ -2141,7 +2142,8 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
for (k=0; k<dst_size; k++) {
printf(" %02x", buf[j*dst_size+ENDIAN(dst_size, k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size)),
+ "");
switch (dst_type) {
case INT_CHAR:
memcpy(aligned, saved+j*sizeof(char), sizeof(signed char));
@@ -2193,7 +2195,8 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
for (k=0; k<dst_size; k++) {
printf(" %02x", hw[ENDIAN(dst_size, k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size)),
+ "");
switch (dst_type) {
case INT_CHAR:
printf(" %29d\n", *((signed char*)hw));
@@ -2656,7 +2659,8 @@ test_conv_flt_1 (const char *name, hid_t src, hid_t dst)
for (k=0; k<src_size; k++) {
printf(" %02x", saved[j*src_size+ENDIAN(src_size,k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)dst_size-(ssize_t)src_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)dst_size-(ssize_t)src_size)),
+ "");
if (FLT_FLOAT==src_type) {
float x;
memcpy(&x, (float*)saved+j, sizeof(float));
@@ -2677,7 +2681,8 @@ test_conv_flt_1 (const char *name, hid_t src, hid_t dst)
for (k=0; k<dst_size; k++) {
printf(" %02x", buf[j*dst_size+ENDIAN(dst_size,k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size)),
+ "");
if (FLT_FLOAT==dst_type) {
float x;
memcpy(&x, (float*)buf+j, sizeof(float));
@@ -2698,7 +2703,8 @@ test_conv_flt_1 (const char *name, hid_t src, hid_t dst)
for (k=0; k<dst_size; k++) {
printf(" %02x", hw[ENDIAN(dst_size,k)]);
}
- printf("%*s", 3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size), "");
+ printf("%*s", (int)(3*MAX(0, (ssize_t)src_size-(ssize_t)dst_size)),
+ "");
if (FLT_FLOAT==dst_type) {
printf(" %29.20e\n", hw_f);
} else if (FLT_DOUBLE==dst_type) {