X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=kstring.c;h=b8ff45c758128c6760c494b8c97d7e06d2a676bd;hb=607d7a0ab79152be4153fa09861cfa889488f2c7;hp=b2a0dab03c36f616c50aa6e5b79709134855db8e;hpb=7251efa37992752a8cf62ff363da0ad5099937bd;p=samtools.git diff --git a/kstring.c b/kstring.c index b2a0dab..b8ff45c 100644 --- 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;