mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-31 13:12:30 -04: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
|
if(nfft.le.NSMALL) then
|
||||||
jz=nfft
|
jz=nfft
|
||||||
if(iform.eq.0) jz=nfft/2
|
if(iform.le.0) jz=nfft/2
|
||||||
aa(1:jz)=a(1:jz)
|
aa(1:jz)=a(1:jz)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ subroutine four2a(a,nfft,ndim,isign,iform)
|
|||||||
|
|
||||||
if(nfft.le.NSMALL) then
|
if(nfft.le.NSMALL) then
|
||||||
jz=nfft
|
jz=nfft
|
||||||
if(iform.eq.0) jz=nfft/2
|
if(iform.le.0) jz=nfft/2
|
||||||
a(1:jz)=aa(1:jz)
|
a(1:jz)=aa(1:jz)
|
||||||
endif
|
endif
|
||||||
end if
|
end if
|
||||||
|
Loading…
x
Reference in New Issue
Block a user