8000 BUG: Fix counter for abstract interfaces in f2py · numpy/numpy@934b10c · GitHub
[go: up one dir, main page]

Skip to content

Commit 934b10c

Browse files
committed
BUG: Fix counter for abstract interfaces in f2py
1 parent 8b74aa6 commit 934b10c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/f2py/crackfortran.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ def crackline(line, reset=0):
735735
if reset > 0:
736736
fl = 0
737737
if f77modulename and neededmodule == groupcounter:
738-
fl = 2
738+
fl = 3
739739
while groupcounter > fl:
740740
outmess('crackline: groupcounter=%s groupname=%s\n' %
741741
(repr(groupcounter), repr(groupname)))
@@ -1058,7 +1058,7 @@ def analyzeline(m, case, line):
10581058
return
10591059
block = {'call': 'subroutine', 'callfun': 'function'}[case]
10601060
if f77modulename and neededmodule == -1 and groupcounter <= 1:
1061-
neededmodule = groupcounter + 2
1061+
neededmodule = groupcounter + 3
10621062
needmodule = 1
10631063
if block not in ['interface', 'abstract interface']:
10641064
needinterface = 1

0 commit comments

Comments
 (0)
0