aboutsummaryrefslogtreecommitdiff
path: root/src/c/kmer_utils.c
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-03-04 14:19:46 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2014-03-04 14:19:46 -0500
commit592e0945fcfb94d641c16f2cf02add0c0430b226 (patch)
tree8f4ce109ddf3ee8a51753b1b84e193d8f0155252 /src/c/kmer_utils.c
parent2aa4254c4368fd85ca6d37e17c786eb295a79c5a (diff)
fix all warnings and that weird bug
Diffstat (limited to 'src/c/kmer_utils.c')
-rw-r--r--src/c/kmer_utils.c4
1 files changed, 2 insertions, 2 deletions
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;