Skip to content

Commit

Permalink
fix more warnings
Browse files Browse the repository at this point in the history
gcc 13.2
  • Loading branch information
rurban committed Feb 29, 2024
1 parent ee9f725 commit be07ccd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/algos/askip.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ int search(unsigned char *x, int m, unsigned char *y, int n) {
free(automaton->trans);
free(automaton->term);
free(automaton->fail);
free(automaton);
for (i = automaton->root; i < automaton->nodeCounter; ++i)
freeListOfIntegers(z[i]);
free(automaton);
free(z);
END_SEARCHING
return count;
Expand Down
3 changes: 2 additions & 1 deletion source/algos/gg.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ int preColussi(unsigned char *x, int m, int h[], int next[],
} while (k <= m);

/* Computation of kmin */
memset(kmin, 0, m*sizeof(int));
memset(kmin, 0, m * sizeof(int));
for (i = m; i >= 1; --i)
if (hmax[i] < m)
kmin[hmax[i]] = i;

/* Computation of rmin */
memset(rmin, 0, m * sizeof(int));
for (i = m - 1; i >= 0; --i) {
if (hmax[i + 1] == m)
r = i + 1;
Expand Down

0 comments on commit be07ccd

Please sign in to comment.