Skip to content

Commit b80448c

Browse files
committed
io: update access mode handling in file operations
1 parent c892a74 commit b80448c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stdlib_io.fypp

+2-2
Original file line numberDiff line numberDiff line change
@@ -460,14 +460,14 @@ contains
460460
select case (mode_(3:3))
461461
case('t')
462462
form_='formatted'
463+
access_='sequential'
463464
case('b')
464465
form_='unformatted'
466+
access_ = 'stream'
465467
case default
466468
call error_stop("Unsupported mode: "//mode_(3:3))
467469
end select
468470

469-
access_ = 'stream'
470-
471471
if (present(iostat)) then
472472
open(newunit=u, file=filename, &
473473
action = action_, position = position_, status = status_, &

0 commit comments

Comments
 (0)