Skip to content

Commit

Permalink
Update itr.c
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdu committed Feb 20, 2024
1 parent 2860f72 commit 44c3be4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/itr.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MIN3(a, b, c) MIN(MIN((a), (b)), (c))
#define MIN4(a, b, c, d) MIN(MIN((a), (b)), MIN((c), (d)))
//#define MIN4(a, b, c, d) MIN(MIN((a), (b)), MIN((c), (d)))

/*
*@param s str, motif sequence
Expand Down Expand Up @@ -211,13 +211,22 @@ static float wrap_around_backtrace(int **mx, int m, int i, int dr, int *eds) {
//extend length
int l;

//create match array
int *marr;
int k;

j = m;
l = i;

if (i <= 0) {
return 0;
}

marr = (int *)malloc((i + 1) * sizeof(int));
for (k=0; k <= i; ++k) {
marr[k] = 0;
}

while (i > 0 || j > 0) {
//go back through second pass
if ((i > 0) && (j > 0) && (j < m)) {
Expand Down

0 comments on commit 44c3be4

Please sign in to comment.