fixed a typo

This commit is contained in:
Heng Li 2011-11-02 09:03:05 -04:00
parent 673ae4aaf8
commit 4083fe9413
1 changed files with 1 additions and 1 deletions

2
bwt.c
View File

@ -56,7 +56,7 @@ void bwt_cal_sa(bwt_t *bwt, int intv)
bwt->sa_intv = intv; bwt->sa_intv = intv;
bwt->n_sa = (bwt->seq_len + intv) / intv; bwt->n_sa = (bwt->seq_len + intv) / intv;
bwt->sa = (bwtint_t*)calloc(bwt->n_sa, sizeof(bwtint_t)); bwt->sa = (bwtint_t*)calloc(bwt->n_sa, sizeof(bwtint_t));
if (bwa->sa == 0) { if (bwt->sa == 0) {
fprintf(stderr, "[%s] Fail to allocate %.3fMB memory. Abort!\n", __func__, bwt->n_sa * sizeof(bwtint_t) / 1024.0/1024.0); fprintf(stderr, "[%s] Fail to allocate %.3fMB memory. Abort!\n", __func__, bwt->n_sa * sizeof(bwtint_t) / 1024.0/1024.0);
abort(); abort();
} }