fixed an integer overflow

This commit is contained in:
Heng Li 2011-10-24 14:39:57 -04:00
parent 8f3c780552
commit b59fd2bf47
2 changed files with 3 additions and 2 deletions

View File

@ -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;

2
main.c
View File

@ -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()