summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-07-23 19:50:00 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-07-23 19:50:00 (GMT)
commita5d799d351d461da8506f2b7a4d4723ff30885cf (patch)
treec1d361477e8468a63643cebf80b51ae1d626b783
parent5168cce4c00da5196a799b7beb99180760b93b8a (diff)
downloadhdf5-a5d799d351d461da8506f2b7a4d4723ff30885cf.zip
hdf5-a5d799d351d461da8506f2b7a4d4723ff30885cf.tar.gz
hdf5-a5d799d351d461da8506f2b7a4d4723ff30885cf.tar.bz2
[svn-r1533] ./test/dtypes.c [1.2, 1.3]
Fixed the decimal value which is printed for `dst' when an error is detected. The hexadecimal value was correct.
-rw-r--r--test/dtypes.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index d3c73ae..e9ff79c 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -2676,43 +2676,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
"");
switch (dst_type) {
case INT_CHAR:
- memcpy(aligned, saved+j*sizeof(char), sizeof(signed char));
+ memcpy(aligned, buf+j*sizeof(char), sizeof(signed char));
printf(" %29d\n", *((signed char*)aligned));
break;
case INT_UCHAR:
- memcpy(aligned, saved+j*sizeof(char), sizeof(unsigned char));
+ memcpy(aligned, buf+j*sizeof(char), sizeof(unsigned char));
printf(" %29u\n", *((unsigned char*)aligned));
break;
case INT_SHORT:
- memcpy(aligned, saved+j*sizeof(short), sizeof(short));
+ memcpy(aligned, buf+j*sizeof(short), sizeof(short));
printf(" %29d\n", *((short*)aligned));
break;
case INT_USHORT:
- memcpy(aligned, saved+j*sizeof(short), sizeof(unsigned short));
+ memcpy(aligned, buf+j*sizeof(short), sizeof(unsigned short));
printf(" %29u\n", *((unsigned short*)aligned));
break;
case INT_INT:
- memcpy(aligned, saved+j*sizeof(int), sizeof(int));
+ memcpy(aligned, buf+j*sizeof(int), sizeof(int));
printf(" %29d\n", *((int*)aligned));
break;
case INT_UINT:
- memcpy(aligned, saved+j*sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, buf+j*sizeof(unsigned), sizeof(unsigned));
printf(" %29u\n", *((unsigned*)aligned));
break;
case INT_LONG:
- memcpy(aligned, saved+j*sizeof(long), sizeof(long));
+ memcpy(aligned, buf+j*sizeof(long), sizeof(long));
printf(" %29ld\n", *((long*)aligned));
break;
case INT_ULONG:
- memcpy(aligned, saved+j*sizeof(long), sizeof(unsigned long));
+ memcpy(aligned, buf+j*sizeof(long), sizeof(unsigned long));
printf(" %29lu\n", *((unsigned long*)aligned));
break;
case INT_LLONG:
- memcpy(aligned, saved+j*sizeof(long_long), sizeof(long_long));
+ memcpy(aligned, buf+j*sizeof(long_long), sizeof(long_long));
printf(" %29"PRINTF_LL_WIDTH"d\n", *((long_long*)aligned));
break;
case INT_ULLONG:
- memcpy(aligned, saved+j*sizeof(long_long),
+ memcpy(aligned, buf+j*sizeof(long_long),
sizeof(unsigned long_long));
printf(" %29"PRINTF_LL_WIDTH"u\n",
*((unsigned long_long*)aligned));