Skip to content

Commit 51f04cc

Browse files
committed
Resolve valgrind error on some platforms.
1 parent 55e32f3 commit 51f04cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/symmetr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ WORD Distribute(DISTRIBUTE *d, WORD first)
531531
inc = d->cycle;
532532
from = inc + d->n;
533533
while ( *inc ) { j++; inc++; }
534-
while ( !*inc && inc < from ) { i++; inc++; }
534+
while ( inc < from && !*inc ) { i++; inc++; }
535535
if ( inc >= from ) return(1);
536536
d->sign ^= ((i&j)-j+1) & 1;
537537
*inc = 0;

0 commit comments

Comments
 (0)