mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
Repair a long-standing defect that could cause access violations
This was revealed when building with gcc-fortran v11 and using reference spectrum correction.
This commit is contained in:
parent
12efb098bb
commit
595ef8e9db
@ -67,7 +67,7 @@ subroutine four2a(a,nfft,ndim,isign,iform)
|
||||
|
||||
if(nfft.le.NSMALL) then
|
||||
jz=nfft
|
||||
if(iform.eq.0) jz=nfft/2
|
||||
if(iform.le.0) jz=nfft/2
|
||||
aa(1:jz)=a(1:jz)
|
||||
endif
|
||||
|
||||
@ -87,7 +87,7 @@ subroutine four2a(a,nfft,ndim,isign,iform)
|
||||
|
||||
if(nfft.le.NSMALL) then
|
||||
jz=nfft
|
||||
if(iform.eq.0) jz=nfft/2
|
||||
if(iform.le.0) jz=nfft/2
|
||||
a(1:jz)=aa(1:jz)
|
||||
endif
|
||||
end if
|
||||
|
Loading…
Reference in New Issue
Block a user