diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-11-04 03:23:30 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-11-04 03:23:30 (GMT) |
commit | 965e3bc3e20cefeb81b0b88002c1dc42d197c2ff (patch) | |
tree | 6fe49900b179c79bf8904760ce6b60953d70021e /tools/h4toh5/h4toh5vdata.c | |
parent | bd74bf3ff0139edfcd565989458cbbcaeaf6bfb6 (diff) | |
download | hdf5-965e3bc3e20cefeb81b0b88002c1dc42d197c2ff.zip hdf5-965e3bc3e20cefeb81b0b88002c1dc42d197c2ff.tar.gz hdf5-965e3bc3e20cefeb81b0b88002c1dc42d197c2ff.tar.bz2 |
[svn-r4591] Purpose:
Code cleanup
Description:
Fix a bunch of warnings
Platforms tested:
Linux 2.2 (eirene)
Diffstat (limited to 'tools/h4toh5/h4toh5vdata.c')
-rw-r--r-- | tools/h4toh5/h4toh5vdata.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/h4toh5/h4toh5vdata.c b/tools/h4toh5/h4toh5vdata.c index e4efd1d..07a2fa5 100644 --- a/tools/h4toh5/h4toh5vdata.c +++ b/tools/h4toh5/h4toh5vdata.c @@ -420,7 +420,7 @@ int Vdata_h4_to_h5(int32 file_id,int32 vdata_id, hid_t group_id,int h4_attr) { } } - if(h4_transnumattr(h5dset,HDF4_REF_NUM,vdata_ref)==FAIL){ + if(h4_transnumattr(h5dset,HDF4_REF_NUM,(uint16)vdata_ref)==FAIL){ printf("error in transfering vdata attributes.\n"); free(h5memtype); free(h5type); @@ -527,7 +527,7 @@ int vdata_transattrs(int32 vdata_id,hid_t h5dset,int snum_vdattrs, strcat(svdattr_name,":"); strcat(svdattr_name,"HDF4_VDATA_ATTR_"); - if(conv_int_str(field_index,refstr)==FAIL) { + if(conv_int_str((uint16)field_index,refstr)==FAIL) { printf("error in converting vdata field index to string.\n"); return FAIL; } @@ -570,7 +570,7 @@ int vdata_transattrs(int32 vdata_id,hid_t h5dset,int snum_vdattrs, return FAIL; } - if ((sh5str_memtype = mkstr(count_svdadata*sh4_amemsize, + if ((sh5str_memtype = mkstr((int)(count_svdadata*sh4_amemsize), H5T_STR_SPACEPAD))<0) { printf("error in making memory string for vdata attribute. \n"); free(svd_adata); @@ -731,7 +731,7 @@ int gen_h5comptype(int32 vdata_id,int32 nfields, if(sh5type[i] == H5T_STRING) { - if ((h5str_type = mkstr(sh4size[i]*fieldorder,H5T_STR_SPACEPAD))<0) { + if ((h5str_type = mkstr((int)(sh4size[i]*fieldorder),H5T_STR_SPACEPAD))<0) { printf("error in making string of hdf5 string. \n"); return FAIL; } @@ -741,7 +741,7 @@ int gen_h5comptype(int32 vdata_id,int32 nfields, if (sh5memtype[i] == H5T_STRING) { - if((h5str_type = mkstr(sh4memsize[i]*fieldorder,H5T_STR_SPACEPAD))<0){ + if((h5str_type = mkstr((int)(sh4memsize[i]*fieldorder),H5T_STR_SPACEPAD))<0){ printf("error in making string for VDATA in memory. \n"); return FAIL; } |