Skip to content

Commit 4b0d880

Browse files
committed
remove redundant while(.true.)
1 parent 52f8694 commit 4b0d880

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stdlib_selection.fypp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ contains
9090
error stop "select must have 1 <= k <= size(a), and 1 <= left <= right <= size(a)";
9191
end if
9292

93-
do while(.true.)
93+
do
9494
mid = l + ((r-l)/2_ip) ! Avoid (l+r)/2 which can cause overflow
9595

9696
call medianOf3(a, l, mid, r)
@@ -206,7 +206,7 @@ contains
206206
error stop "arg_select must have 1 <= k <= size(a), and 1 <= left <= right <= size(a)";
207207
end if
208208

209-
do while(.true.)
209+
do
210210
mid = l + ((r-l)/2_ip) ! Avoid (l+r)/2 which can cause overflow
211211

212212
call arg_medianOf3(a, indx, l, mid, r)

0 commit comments

Comments
 (0)