~ubuntu-branches/ubuntu/edgy/ncbi-tools6/edgy

« back to all changes in this revision

Viewing changes to tools/mbalign.c

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2006-07-19 23:28:07 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060719232807-et3cdmcjgmnyleyx
Tags: 6.1.20060507-3ubuntu1
Re-merge with Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
static char const rcsid[] = "$Id: mbalign.c,v 6.42 2005/05/03 20:29:17 papadopo Exp $";
 
1
static char const rcsid[] = "$Id: mbalign.c,v 6.43 2006/02/02 17:57:34 papadopo Exp $";
2
2
 
3
 
/* $Id: mbalign.c,v 6.42 2005/05/03 20:29:17 papadopo Exp $
 
3
/* $Id: mbalign.c,v 6.43 2006/02/02 17:57:34 papadopo Exp $
4
4
* ===========================================================================
5
5
*
6
6
*                            PUBLIC DOMAIN NOTICE
32
32
*
33
33
* Initial Creation Date: 10/27/1999
34
34
*
35
 
* $Revision: 6.42 $
 
35
* $Revision: 6.43 $
36
36
*
37
37
* File Description:
38
38
*        Alignment functions for Mega Blast program
39
39
*
40
40
* $Log: mbalign.c,v $
 
41
* Revision 6.43  2006/02/02 17:57:34  papadopo
 
42
* fix a rare bug computing greedy traceback
 
43
*
41
44
* Revision 6.42  2005/05/03 20:29:17  papadopo
42
45
* remove use of ICEIL macro; use either a true integer ceiling or (quotient+1) as circumstances warrant
43
46
*
1110
1113
            if (state == sC) {
1111
1114
                /* diag will not be changed*/
1112
1115
                state = get_lastC(flast_d, lower, upper, &d, diag, Mis_cost, &row1);
1113
 
                if (row-row1 > 0) edit_script_rep(S, row-row1);
1114
 
                row = row1;
 
1116
                if (row-row1 > 0) {
 
1117
                   edit_script_rep(S, row-row1);
 
1118
                   row = row1;
 
1119
                }
1115
1120
            } else {
1116
1121
                if (state == sI) {
1117
1122
                    /*row unchanged */