summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5If.c
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2006-10-12 03:59:18 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2006-10-12 03:59:18 (GMT)
commit65a1c88821f60afd477a64e81564f33d14e9e671 (patch)
tree9badae16a867c73523803cc8043a0526cdfd68ce /fortran/src/H5If.c
parente065eee4a8932e6c09557bc539d6674138e9d7fe (diff)
downloadhdf5-65a1c88821f60afd477a64e81564f33d14e9e671.zip
hdf5-65a1c88821f60afd477a64e81564f33d14e9e671.tar.gz
hdf5-65a1c88821f60afd477a64e81564f33d14e9e671.tar.bz2
[svn-r12752] Descripton: This is a port to G95 compiler for MAC OSX and AIX 5.2
Previous implementation failed to compile on MAC OS X Tiger 10.4 and AIX 5.2 In previous implementation, each overloaded Fortran function called the same C function. Since declaration of parameters in INTERFACE block for C Function differed, some compilers issued warnings but g95 on MAC and AIX failed to compile. Solution: Add C wrappers corresponding to each overloaded Fortran function to call C stub function. This fix should also reduce number of warnings on IRIX systems. Platforms tested: MAC OS and AIX 5.2 (copper) with g95; sol (with Sun compilers), heping with PGI compilers
Diffstat (limited to 'fortran/src/H5If.c')
-rw-r--r--fortran/src/H5If.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fortran/src/H5If.c b/fortran/src/H5If.c
index 6931066..d23dd13 100644
--- a/fortran/src/H5If.c
+++ b/fortran/src/H5If.c
@@ -81,7 +81,7 @@ nh5iget_name_c(hid_t_f *obj_id, _fcd buf, size_t_f *buf_size, size_t_f *name_siz
/*
* Convert C name to FORTRAN and place it in the given buffer
*/
- HD5packFstring(c_buf, _fcdtocp(buf), (int)c_buf_size);
+ HD5packFstring(c_buf, _fcdtocp(buf), c_buf_size);
*name_size = (size_t_f)c_size;
ret_value = 0;