Skip to content

Commit

Permalink
fixed a bug in parsing sequences: unsigned int overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanjue committed Jan 8, 2019
1 parent 684dcfe commit 0fef0c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ int kbm_main(int argc, char **argv){
seq = seqs[k];
}
tag_size = seq->tag->size;
for(i=0;(int)i<seq->seq->size;i+=KBM_MAX_RDLEN){
for(i=0;i<UInt(seq->seq->size);i+=KBM_MAX_RDLEN){
len = num_min(seq->seq->size - i, KBM_MAX_RDLEN);
if(i){
append_string(seq->tag, "_V", 2);
Expand Down

0 comments on commit 0fef0c2

Please sign in to comment.