File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ submodule(stdlib_io_np) stdlib_io_np_save
10
10
use stdlib_error, only: error_stop
11
11
use stdlib_filesystem, only: run
12
12
use stdlib_strings, only: to_string
13
- use stdlib_string_type, only: string_type, char
13
+ use stdlib_string_type, only: string_type, as_string => char
14
14
use stdlib_io_zip, only: zip
15
15
implicit none
16
16
@@ -167,7 +167,7 @@ contains
167
167
#:for rank in RANKS
168
168
class is (t_array_${t1[0]}$${k1}$_${rank}$)
169
169
do j = 1, size(files)
170
- if (char (files(j)) == typed_array%name) then
170
+ if (as_string (files(j)) == typed_array%name) then
171
171
if (present(iostat)) iostat = 1
172
172
if (present(iomsg)) iomsg = "Error saving array to file '"//filename// &
173
173
"': Array with the same name '"//typed_array%name//"' already exists."
@@ -212,7 +212,7 @@ contains
212
212
integer :: i, unit
213
213
214
214
do i = 1, size(files)
215
- open(newunit=unit, file=char (files(i)))
215
+ open(newunit=unit, file=as_string (files(i)))
216
216
close(unit, status="delete")
217
217
end do
218
218
end
You can’t perform that action at this time.
0 commit comments