summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2002-05-02 18:56:32 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2002-05-02 18:56:32 (GMT)
commit84d5daad4faa490f541aa87aa2b8ce8dd047cfce (patch)
treecf90fe5db2f277c54503554281d43240621c89ae /src/H5T.c
parent5979d5776fe92998fe07768aa070c76f75459324 (diff)
downloadhdf5-84d5daad4faa490f541aa87aa2b8ce8dd047cfce.zip
hdf5-84d5daad4faa490f541aa87aa2b8ce8dd047cfce.tar.gz
hdf5-84d5daad4faa490f541aa87aa2b8ce8dd047cfce.tar.bz2
[svn-r5326]
Purpose: code clean-up Description: Many warnings are generated on windows due to seemingly large-size data type converting to small-size data type, 1.5 branch has been cleaned up, make 1.4 catch up with 1.5. Solution: If meeting with the break-up of the current tests on other platforms, will resume the previous one Platforms tested: windows 2000, linux 2.2.18
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/H5T.c b/src/H5T.c
index 785737f..146c203 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -2803,8 +2803,7 @@ H5Tget_ebias(hid_t type_id)
}
/* bias */
- ebias = dt->u.atomic.u.f.ebias;
-
+ H5_ASSIGN_OVERFLOW(ebias,dt->u.atomic.u.f.ebias,uint64_t,size_t);
FUNC_LEAVE(ebias);
}
@@ -7385,7 +7384,7 @@ H5T_array_create(H5T_t *base, int ndims, const hsize_t dim[/* ndims */],
/* Copy the array dimensions & compute the # of elements in the array */
for(i=0, ret_value->u.array.nelem=1; i<ndims; i++) {
- ret_value->u.array.dim[i] = dim[i];
+ H5_ASSIGN_OVERFLOW(ret_value->u.array.dim[i],dim[i],hsize_t,size_t);
ret_value->u.array.nelem *= dim[i];
} /* end for */
@@ -7701,12 +7700,12 @@ H5T_debug(H5T_t *dt, FILE *stream)
(unsigned long) (dt->u.atomic.u.f.esize));
tmp = dt->u.atomic.u.f.ebias >> 32;
if (tmp) {
- size_t hi = tmp;
- size_t lo = dt->u.atomic.u.f.ebias & 0xffffffff;
+ size_t hi = (size_t)tmp;
+ size_t lo = (size_t)(dt->u.atomic.u.f.ebias & 0xffffffff);
fprintf(stream, " bias=0x%08lx%08lx",
(unsigned long)hi, (unsigned long)lo);
} else {
- size_t lo = dt->u.atomic.u.f.ebias & 0xffffffff;
+ size_t lo = (size_t)(dt->u.atomic.u.f.ebias & 0xffffffff);
fprintf(stream, " bias=0x%08lx", (unsigned long)lo);
}
break;