diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2002-05-02 18:56:32 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2002-05-02 18:56:32 (GMT) |
commit | 84d5daad4faa490f541aa87aa2b8ce8dd047cfce (patch) | |
tree | cf90fe5db2f277c54503554281d43240621c89ae /src/H5T.c | |
parent | 5979d5776fe92998fe07768aa070c76f75459324 (diff) | |
download | hdf5-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.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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; |