Skip to content

Commit

Permalink
fixed an integer overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Heng Li committed Oct 24, 2011
1 parent 8f3c780 commit b59fd2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bwtsw2_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@ bwtsw2_t **bsw2_core(const bntseq_t *bns, const bsw2opt_t *opt, const bwtl_t *ta
while (!stack_isempty(stack)) {
int old_n, tj;
bsw2entry_t *v;
uint32_t k, l, tcntk[4], tcntl[4];
uint32_t tcntk[4], tcntl[4];
bwtint_t k, l;

v = stack_pop(stack); old_n = v->n;
n_tot += v->n;
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "utils.h"

#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "0.6.0-r54-dev"
#define PACKAGE_VERSION "0.6.0-r55-dev"
#endif

static int usage()
Expand Down

0 comments on commit b59fd2b

Please sign in to comment.