mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r30087] fixed issue of CHARACTER argument of c_loc having a length of 1
This commit is contained in:
parent
a82edeb89b
commit
bdcb43071a
@ -6264,7 +6264,7 @@ SUBROUTINE h5pset_attr_phase_change_f(ocpl_id, max_compact, min_dense, hdferr)
|
||||
INTEGER, INTENT(OUT) :: hdferr ! Error code
|
||||
TYPE(C_PTR) :: f_ptr ! C address
|
||||
|
||||
f_ptr = C_LOC(fillvalue)
|
||||
f_ptr = C_LOC(fillvalue(1:1))
|
||||
hdferr = h5pset_fill_value_c(prp_id, type_id, f_ptr)
|
||||
|
||||
END SUBROUTINE h5pset_fill_value_char
|
||||
@ -6286,7 +6286,7 @@ SUBROUTINE h5pset_attr_phase_change_f(ocpl_id, max_compact, min_dense, hdferr)
|
||||
! To resolve Issue #1 outlined in the preamble of this file we
|
||||
! need to pack the character string into an array.
|
||||
|
||||
chr_len = LEN(fillvalue)
|
||||
chr_len = LEN(fillvalue(1:1))
|
||||
ALLOCATE(chr(1:chr_len), STAT=hdferr)
|
||||
IF (hdferr .NE. 0) THEN
|
||||
hdferr = -1
|
||||
|
Loading…
Reference in New Issue
Block a user