summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5Rf.c
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2015-03-09 15:51:09 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2015-03-09 15:51:09 (GMT)
commit1f4f709e8cdfaa4bc35d58c665008793d7e1cca1 (patch)
tree1e6de1167338d6b57b43ba6ce1d8f0852f05d324 /fortran/src/H5Rf.c
parent2a4ea9b24e5d28598b627fca39fb42a9baedfaa3 (diff)
downloadhdf5-1f4f709e8cdfaa4bc35d58c665008793d7e1cca1.zip
hdf5-1f4f709e8cdfaa4bc35d58c665008793d7e1cca1.tar.gz
hdf5-1f4f709e8cdfaa4bc35d58c665008793d7e1cca1.tar.bz2
[svn-r26401] Fixed warnings in the C stubs for Fortran wrappers. See Crucible review HDF5-238.
Tested on platypus with gcc/gfortran 4.9.2, jam and emu with the default compilers.
Diffstat (limited to 'fortran/src/H5Rf.c')
-rw-r--r--fortran/src/H5Rf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fortran/src/H5Rf.c b/fortran/src/H5Rf.c
index e35de21..19fa6b1 100644
--- a/fortran/src/H5Rf.c
+++ b/fortran/src/H5Rf.c
@@ -153,7 +153,7 @@ h5rcreate_ptr_c (void *ref, hid_t_f *loc_id, _fcd name, int_f *namelen, int_f *r
/*
* Convert FORTRAN name to C name
*/
- c_namelen = *namelen;
+ c_namelen = (size_t)*namelen;
c_name = (char *)HD5f2cstring(name, c_namelen);
if (c_name == NULL) return ret_value;
@@ -567,7 +567,7 @@ h5rget_name_ptr_c (hid_t_f *loc_id, int_f *ref_type, void *ref, _fcd name, size_
/*
* Allocate buffer to hold name of an attribute
*/
- if ((c_buf = HDmalloc(c_bufsize)) == NULL)
+ if ((c_buf = (char *)HDmalloc(c_bufsize)) == NULL)
return ret_value;
/*