diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-10-21 19:25:29 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-10-21 19:25:29 (GMT) |
commit | 83abc3a4e4930cd94ae3dca06ef1e28c461bcc79 (patch) | |
tree | 4e9fa0e6e35c49b18d7510d39a3605d4c1bfcee8 /tools/lib/h5diff_dset.c | |
parent | 00b0378cd307997f8d427c27e85d7f2e7f9ab0ac (diff) | |
download | hdf5-83abc3a4e4930cd94ae3dca06ef1e28c461bcc79.zip hdf5-83abc3a4e4930cd94ae3dca06ef1e28c461bcc79.tar.gz hdf5-83abc3a4e4930cd94ae3dca06ef1e28c461bcc79.tar.bz2 |
[svn-r15923] The printf call with the format "%"H5_PRINTF_LL_WIDTH"u" prints some garbage in linux ia64 unless we pass to the function a temporary pointer variable
Tested: windows, linux (kagiso), solaris, linux ia64 (tg-login3)
Diffstat (limited to 'tools/lib/h5diff_dset.c')
-rw-r--r-- | tools/lib/h5diff_dset.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/lib/h5diff_dset.c b/tools/lib/h5diff_dset.c index 38b7f16..84aff45 100644 --- a/tools/lib/h5diff_dset.c +++ b/tools/lib/h5diff_dset.c @@ -30,14 +30,17 @@ static void print_size (int rank, hsize_t *dims) { int i; + unsigned long_long dim; parallel_print("[" ); for ( i = 0; i < rank-1; i++) { - parallel_print("%"H5_PRINTF_LL_WIDTH"u", (unsigned long_long)dims[i]); + dim = dims[i]; + parallel_print("%"H5_PRINTF_LL_WIDTH"u", *((unsigned long_long *)((void *)dim)))); parallel_print("x"); } - parallel_print("%"H5_PRINTF_LL_WIDTH"u", (unsigned long_long)dims[rank-1]); + dim = dims[rank-1]; + parallel_print("%"H5_PRINTF_LL_WIDTH"u", *((unsigned long_long *)((void *)dim))))); parallel_print("]\n" ); } |