From 592e0945fcfb94d641c16f2cf02add0c0430b226 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 4 Mar 2014 14:19:46 -0500 Subject: fix all warnings and that weird bug --- src/c/kmer_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/c/kmer_utils.c') diff --git a/src/c/kmer_utils.c b/src/c/kmer_utils.c index ca33156..0980a69 100644 --- a/src/c/kmer_utils.c +++ b/src/c/kmer_utils.c @@ -28,7 +28,7 @@ unsigned long num_to_index(const char *str, const int kmer, const long error_pos for(i = kmer - 1; i >= 0; i--){ - if(str[i] >> 2) { + if(str[i] == 5) { // position += i; return error_pos; } @@ -117,7 +117,7 @@ unsigned long long * get_kmer_counts_from_file(const char *fn, const unsigned in // strip out all other newlines to handle multiline sequences str = strnstrip(start, str, '\n',start_len); - size_t seq_length = strlen(str); + ssize_t seq_length = strlen(str); if(seq_length < kmer) continue; -- cgit v1.2.3