Skip to content

Commit 242859e

Browse files
committed
cleanup
1 parent 51c6143 commit 242859e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mastermind.f90

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,8 @@ PROGRAM MasterMind
126126
CHARACTER, allocatable :: secret(:), guess(:)
127127
logical, allocatable :: match(:)
128128

129-
call get_command_argument(1, argv,status=i)
130-
if (i==0) read(argv,'(I2)', iostat=i) N
131-
if (N < 1 .or. N > 99 .or. i/=0) then
129+
call get_command_argument(1, argv, status=i); if (i==0) read(argv,'(I2)') N
130+
if (N < 1 .or. N > 99) then
132131
write(stderr,*) "I need between 1 and 99 letters"
133132
stop 1
134133
endif

0 commit comments

Comments
 (0)