X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sam%2Fkstring.c;fp=sam%2Fkstring.c;h=b8ff45c758128c6760c494b8c97d7e06d2a676bd;hb=dbcf1cfb8ad1086c21d64e249f012809403e7ddc;hp=b2a0dab03c36f616c50aa6e5b79709134855db8e;hpb=58d504aaf36ae486b1dba6d03e0e9f1c25855037;p=rsem.git diff --git a/sam/kstring.c b/sam/kstring.c index b2a0dab..b8ff45c 100644 --- a/sam/kstring.c +++ b/sam/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;