Skip to content

Commit 0357822

Browse files
committed
Fixed unsigned signed comparisons
1 parent 1db0e36 commit 0357822

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_primer_trim.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ int main(){
8686
std::cout << "Primer indice wrong. Expected: " << primer_indices[primer_ctr] << ". Got: " << cand_primer.get_indice() << std::endl;
8787
}
8888
// Check start pos
89-
if((uint) aln->core.pos != read_start_pos[primer_ctr]){
89+
if(aln->core.pos != (int) read_start_pos[primer_ctr]){
9090
success = -1;
9191
std::cout << "Incorrect start position" << std::endl;
9292
}

tests/test_unpaired_trim.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ int main(){
110110
std::cout << "Primer indice wrong. Expected: " << rev_primer_indices[primer_ctr] << ". Got: " << cand_primer.get_indice() << std::endl;
111111
}
112112
}
113-
if(aln->core.pos != read_start_pos[primer_ctr]){
113+
if(aln->core.pos != (int) read_start_pos[primer_ctr]){
114114
success = -1;
115115
std::cout << "Start pos didn't match" << std::endl;
116116
}

0 commit comments

Comments
 (0)