Skip to content

Commit 42dc45c

Browse files
committed
Use redirected import to satisfy intel once more
1 parent a801963 commit 42dc45c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stdlib_io_np_save.fypp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ submodule(stdlib_io_np) stdlib_io_np_save
1010
use stdlib_error, only: error_stop
1111
use stdlib_filesystem, only: run
1212
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
1414
use stdlib_io_zip, only: zip
1515
implicit none
1616

@@ -167,7 +167,7 @@ contains
167167
#:for rank in RANKS
168168
class is (t_array_${t1[0]}$${k1}$_${rank}$)
169169
do j = 1, size(files)
170-
if (char(files(j)) == typed_array%name) then
170+
if (as_string(files(j)) == typed_array%name) then
171171
if (present(iostat)) iostat = 1
172172
if (present(iomsg)) iomsg = "Error saving array to file '"//filename// &
173173
"': Array with the same name '"//typed_array%name//"' already exists."
@@ -212,7 +212,7 @@ contains
212212
integer :: i, unit
213213

214214
do i = 1, size(files)
215-
open(newunit=unit, file=char(files(i)))
215+
open(newunit=unit, file=as_string(files(i)))
216216
close(unit, status="delete")
217217
end do
218218
end

0 commit comments

Comments
 (0)