Skip to content

Commit 6ae0fbe

Browse files
author
Alexandr Kobotov
committed
Fix uninitialized M when quick return in DLARRD and SLARRD
1 parent a72090a commit 6ae0fbe

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

SRC/dlarrd.f

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ SUBROUTINE DLARRD( RANGE, ORDER, N, VL, VU, IL, IU, GERS,
381381
* .. Executable Statements ..
382382
*
383383
INFO = 0
384+
M = 0
384385
*
385386
* Quick return if possible
386387
*
@@ -424,14 +425,9 @@ SUBROUTINE DLARRD( RANGE, ORDER, N, VL, VU, IL, IU, GERS,
424425
END IF
425426

426427
* Initialize error flags
427-
INFO = 0
428428
NCNVRG = .FALSE.
429429
TOOFEW = .FALSE.
430430

431-
* Quick return if possible
432-
M = 0
433-
IF( N.EQ.0 ) RETURN
434-
435431
* Simplification:
436432
IF( IRANGE.EQ.INDRNG .AND. IL.EQ.1 .AND. IU.EQ.N ) IRANGE = 1
437433

SRC/slarrd.f

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ SUBROUTINE SLARRD( RANGE, ORDER, N, VL, VU, IL, IU, GERS,
381381
* .. Executable Statements ..
382382
*
383383
INFO = 0
384+
M = 0
384385
*
385386
* Quick return if possible
386387
*
@@ -424,14 +425,9 @@ SUBROUTINE SLARRD( RANGE, ORDER, N, VL, VU, IL, IU, GERS,
424425
END IF
425426

426427
* Initialize error flags
427-
INFO = 0
428428
NCNVRG = .FALSE.
429429
TOOFEW = .FALSE.
430430

431-
* Quick return if possible
432-
M = 0
433-
IF( N.EQ.0 ) RETURN
434-
435431
* Simplification:
436432
IF( IRANGE.EQ.INDRNG .AND. IL.EQ.1 .AND. IU.EQ.N ) IRANGE = 1
437433

0 commit comments

Comments
 (0)