aboutsummaryrefslogtreecommitdiff
path: root/src/c/kmer_utils.c
diff options
context:
space:
mode:
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;