Skip to content

Commit

Permalink
fixed two mappy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Mar 26, 2018
1 parent 4740423 commit 7938ed4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/cmappy.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static char *mappy_fetch_seq(const mm_idx_t *mi, const char *name, int st, int e
if (en < 0 || en > mi->seq[rid].len)
en = mi->seq[rid].len;
s = (char*)malloc(en - st + 1);
*len = mm_idx_getseq(mi, rid, st, en, s);
*len = mm_idx_getseq(mi, rid, st, en, (uint8_t*)s);
for (i = 0; i < *len; ++i)
s[i] = "ACGTN"[(uint8_t)s[i]];
s[*len] = 0;
Expand Down
3 changes: 2 additions & 1 deletion python/cmappy.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ cdef extern from "minimap.h":
mm_idx_seq_t *seq
uint32_t *S
mm_idx_bucket_t *B
void *km, *h
void *km
void *h

ctypedef struct mm_idx_reader_t:
pass
Expand Down

0 comments on commit 7938ed4

Please sign in to comment.