diff options
Diffstat (limited to 'lib/wsprcode')
| -rw-r--r-- | lib/wsprcode/nhash.c | 22 | ||||
| -rw-r--r-- | lib/wsprcode/wspr_old_subs.f90 | 16 |
2 files changed, 19 insertions, 19 deletions
diff --git a/lib/wsprcode/nhash.c b/lib/wsprcode/nhash.c index 675022b4..8aabb4ff 100644 --- a/lib/wsprcode/nhash.c +++ b/lib/wsprcode/nhash.c @@ -360,17 +360,17 @@ uint32_t nhash_( const void *key, int *length0, uint32_t *initval0) /*-------------------------------- last block: affect all 32 bits of (c) */
switch(length) /* all the case statements fall through */
{
- case 12: c+=((uint32_t)k[11])<<24;
- case 11: c+=((uint32_t)k[10])<<16;
- case 10: c+=((uint32_t)k[9])<<8;
- case 9 : c+=k[8];
- case 8 : b+=((uint32_t)k[7])<<24;
- case 7 : b+=((uint32_t)k[6])<<16;
- case 6 : b+=((uint32_t)k[5])<<8;
- case 5 : b+=k[4];
- case 4 : a+=((uint32_t)k[3])<<24;
- case 3 : a+=((uint32_t)k[2])<<16;
- case 2 : a+=((uint32_t)k[1])<<8;
+ case 12: c+=((uint32_t)k[11])<<24; /* fall through */
+ case 11: c+=((uint32_t)k[10])<<16; /* fall through */
+ case 10: c+=((uint32_t)k[9])<<8; /* fall through */
+ case 9 : c+=k[8]; /* fall through */
+ case 8 : b+=((uint32_t)k[7])<<24; /* fall through */
+ case 7 : b+=((uint32_t)k[6])<<16; /* fall through */
+ case 6 : b+=((uint32_t)k[5])<<8; /* fall through */
+ case 5 : b+=k[4]; /* fall through */
+ case 4 : a+=((uint32_t)k[3])<<24; /* fall through */
+ case 3 : a+=((uint32_t)k[2])<<16; /* fall through */
+ case 2 : a+=((uint32_t)k[1])<<8; /* fall through */
case 1 : a+=k[0];
break;
case 0 : return c;
diff --git a/lib/wsprcode/wspr_old_subs.f90 b/lib/wsprcode/wspr_old_subs.f90 index b1bbb7e1..a8b5c503 100644 --- a/lib/wsprcode/wspr_old_subs.f90 +++ b/lib/wsprcode/wspr_old_subs.f90 @@ -131,7 +131,7 @@ subroutine fano232(symbol,nbits,mettab,ndelta,maxcycles,dat,ncycles,metric,ierr) ! written by Phil Karn, KA9Q. parameter (MAXBITS=103) - parameter (MAXDAT=(MAXBITS+7)/8) + parameter (MAXDAT=13) !(MAXBITS+7)/8 integer*1 symbol(0:2*MAXBITS-1) integer*1 dat(MAXDAT) !Decoded user data, 8 bits per byte integer mettab(0:255,0:1) !Metric table @@ -509,7 +509,7 @@ subroutine packcall(callsign,ncall,text) text=.true. return endif - tmp=' '//callsign + tmp=' '//callsign(1:5) else text=.true. return @@ -631,8 +631,8 @@ subroutine packpfx(call1,n1,ng,nadd) else ! Prefix of 1 to 3 characters pfx=call1(:i1-1) - if(pfx(3:3).eq.' ') pfx=' '//pfx - if(pfx(3:3).eq.' ') pfx=' '//pfx + if(pfx(3:3).eq.' ') pfx=' '//pfx(1:2) + if(pfx(3:3).eq.' ') pfx=' '//pfx(1:2) call0=call1(i1+1:) call packcall(call0,n1,text) @@ -778,7 +778,7 @@ subroutine unpackpfx(ng,call1) endif n=n/37 enddo - call1=pfx//'/'//call1 + call1=pfx//'/'//call1(1:8) if(call1(1:1).eq.' ') call1=call1(2:) if(call1(1:1).eq.' ') call1=call1(2:) else @@ -831,7 +831,7 @@ subroutine wqdecode(data0,message,ntype) if(ntype.ge.0 .and. ntype.le.62) then nu=mod(ntype,10) if(nu.eq.0 .or. nu.eq.3 .or. nu.eq.7) then - write(cdbm,'(i3)'),ntype + write(cdbm,'(i3)') ntype if(cdbm(1:1).eq.' ') cdbm=cdbm(2:) if(cdbm(1:1).eq.' ') cdbm=cdbm(2:) message=callsign(1:i1)//grid4//' '//cdbm @@ -844,7 +844,7 @@ subroutine wqdecode(data0,message,ntype) ng=n2/128 + 32768*(nadd-1) call unpackpfx(ng,callsign) ndbm=ntype-nadd - write(cdbm,'(i3)'),ndbm + write(cdbm,'(i3)') ndbm if(cdbm(1:1).eq.' ') cdbm=cdbm(2:) if(cdbm(1:1).eq.' ') cdbm=cdbm(2:) i2=index(callsign,' ') @@ -857,7 +857,7 @@ subroutine wqdecode(data0,message,ntype) grid6=callsign(6:6)//callsign(1:5) ih=(n2-ntype-64)/128 callsign=dcall(ih) - write(cdbm,'(i3)'),ndbm + write(cdbm,'(i3)') ndbm if(cdbm(1:1).eq.' ') cdbm=cdbm(2:) if(cdbm(1:1).eq.' ') cdbm=cdbm(2:) i2=index(callsign,' ') |
