Skip to content

Commit

Permalink
Get rid of the last compiler warning
Browse files Browse the repository at this point in the history
It would be more correct to convert all start and end coordinates on query
and reference to unsigned, but this is a much smaller change and should do
for now.

warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
   99 |             if (h.query_start > prev_q_start + k) {
      |                 ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
  • Loading branch information
marcelm committed Mar 19, 2024
1 parent 5e479fe commit aa37546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void merge_hits_into_nams(
}

std::vector<Nam> open_nams;
unsigned int prev_q_start = 0;
int prev_q_start = 0;
for (auto &h : hits) {
bool is_added = false;
for (auto & o : open_nams) {
Expand Down

0 comments on commit aa37546

Please sign in to comment.