]> git.donarmstrong.com Git - samtools.git/blobdiff - kstring.c
converted padded SAM to unpadded SAM
[samtools.git] / kstring.c
index b2a0dab03c36f616c50aa6e5b79709134855db8e..b8ff45c758128c6760c494b8c97d7e06d2a676bd 100644 (file)
--- a/kstring.c
+++ b/kstring.c
@@ -98,13 +98,13 @@ typedef unsigned char ubyte_t;
 static int *ksBM_prep(const ubyte_t *pat, int m)
 {
        int i, *suff, *prep, *bmGs, *bmBc;
-       prep = calloc(m + 256, sizeof(int));
+       prep = (int*)calloc(m + 256, sizeof(int));
        bmGs = prep; bmBc = prep + m;
        { // preBmBc()
                for (i = 0; i < 256; ++i) bmBc[i] = m;
                for (i = 0; i < m - 1; ++i) bmBc[pat[i]] = m - i - 1;
        }
-       suff = calloc(m, sizeof(int));
+       suff = (int*)calloc(m, sizeof(int));
        { // suffixes()
                int f = 0, g;
                suff[m - 1] = m;