diff options
Diffstat (limited to 'map65/libm65/cgen65.f90')
| -rw-r--r-- | map65/libm65/cgen65.f90 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/map65/libm65/cgen65.f90 b/map65/libm65/cgen65.f90 index ac0c14b2..6fcf98d6 100644 --- a/map65/libm65/cgen65.f90 +++ b/map65/libm65/cgen65.f90 @@ -21,7 +21,7 @@ subroutine cgen65(message,mode65,samfac,nsendingsh,msgsent,cwave,nwave) integer, intent(out) :: nsendingsh character(len=22),intent(out) :: msgsent - complex, intent(out) :: cwave(NMAX) + complex, intent(out) :: cwave(:) integer, intent(out) :: nwave !-------------------------------------------------------------------- @@ -106,7 +106,7 @@ subroutine cgen65(message,mode65,samfac,nsendingsh,msgsent,cwave,nwave) !-------------------------------------------------------------------- do i = 1, ndata t = t + dt - j = int(t / tsymbol) + 1 + j = min(nsym, int(t / tsymbol) + 1) if (j .ne. j0) then f = f0 |
