[svn-r30085] changed from CHARACTER to CHARACTER(LEN=*), and moved the LEN of an optional argument into the optional check loop.

This commit is contained in:
Scot Breitenfeld
2016-06-16 11:54:45 -05:00
parent 0c2964383b
commit a82edeb89b
2 changed files with 4 additions and 3 deletions

View File

@@ -141,8 +141,9 @@ CONTAINS
INTEGER FUNCTION h5eprint_c2() BIND(C,NAME='h5eprint_c2')
END FUNCTION h5eprint_c2
END INTERFACE
namelen = LEN(NAME)
IF (PRESENT(name)) THEN
namelen = LEN(NAME)
hdferr = h5eprint_c1(name, namelen)
ELSE
hdferr = h5eprint_c2()

View File

@@ -6260,7 +6260,7 @@ SUBROUTINE h5pset_attr_phase_change_f(ocpl_id, max_compact, min_dense, hdferr)
INTEGER(HID_T), INTENT(IN) :: type_id ! Datatype identifier of
! of fillvalue datatype
! (in memory)
CHARACTER, INTENT(IN), TARGET :: fillvalue ! Fillvalue
CHARACTER(LEN=*), INTENT(IN), TARGET :: fillvalue ! Fillvalue
INTEGER, INTENT(OUT) :: hdferr ! Error code
TYPE(C_PTR) :: f_ptr ! C address
@@ -6275,7 +6275,7 @@ SUBROUTINE h5pset_attr_phase_change_f(ocpl_id, max_compact, min_dense, hdferr)
INTEGER(HID_T), INTENT(IN) :: type_id ! Datatype identifier of
! of fillvalue datatype
! (in memory)
CHARACTER, INTENT(OUT) :: fillvalue ! Fillvalue
CHARACTER(LEN=*), INTENT(OUT) :: fillvalue ! Fillvalue
INTEGER, INTENT(OUT) :: hdferr ! Error code
INTEGER :: i