Skip to content

Commit

Permalink
cleanup diff code
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Feb 17, 2024
1 parent ffc5537 commit 5ed545d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bld/builder/c/diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ static SLONG newcand( SLONG a, SLONG b, SLONG pred )
CANDIDATE *new;

clength++;
if( ++clength >= csize ) {
clength++;
if( clength >= csize ) {
csize += CSIZE_INC;
clist = MYCOMPACT( CANDIDATE, clist, csize, "extending clist" );
}
Expand Down Expand Up @@ -1177,7 +1178,7 @@ int main( int argc, char **argv )
case 'c':
if( *ap > '0'
&& *ap <= '9' ) {
cflag = *ap++ -'0';
cflag = *ap++ - '0';
} else {
cflag = 3;
}
Expand Down

0 comments on commit 5ed545d

Please sign in to comment.