Skip to content

Commit 9161fc7

Browse files
committed
Replaced go to 100 with exit
Replaced go to 100 with exit in both stdlib_bitsets_64.fypp and stdlib_bitsets_large.fypp. [ticket: X]
1 parent e957342 commit 9161fc7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/stdlib_bitsets_64.fypp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ contains
651651
bits = bits*10 + iachar( string(pos:pos) ) - ia0
652652
if ( bits < 0 ) go to 996
653653
case(iachar('b'), iachar('B'))
654-
go to 100
654+
exit
655655
case default
656656
go to 999
657657
end select
@@ -660,7 +660,7 @@ contains
660660

661661
end do
662662

663-
100 if ( bits > 64 ) then
663+
if ( bits > 64 ) then
664664
call error_handler( 'BITS in STRING was greater than 64.', &
665665
char_string_too_large_error, status, &
666666
module_name, procedure )

src/stdlib_bitsets_large.fypp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ contains
840840
bits = bits*10 + iachar( string(pos:pos) ) - ia0
841841
if ( bits < 0 ) go to 996
842842
case(iachar('b'), iachar('B'))
843-
go to 100
843+
exit
844844
case default
845845
call error_handler( 'There was an invalid character ' // &
846846
'in STRING', &
@@ -852,7 +852,7 @@ contains
852852
pos = pos + 1
853853
end do
854854

855-
100 if ( bits + pos > len(string) ) then
855+
if ( bits + pos > len(string) ) then
856856
call error_handler( 'STRING was too small for the number of ' // &
857857
'bits specified by STRING.', &
858858
char_string_too_small_error, status, &

0 commit comments

Comments
 (0)