Skip to content

Commit

Permalink
Merge pull request #178 from braxtons12/patch-1
Browse files Browse the repository at this point in the history
Fix clang-tidy warning in `indexed_bounds_check_fn::operator()`
  • Loading branch information
tcbrindle authored Mar 14, 2024
2 parents 8ae438b + 702f989 commit cfa01fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/flux/core/assert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ struct indexed_bounds_check_fn {
}
}
#endif
assert_fn{}(idx >= T{0}, "index cannot be negative", std::move(loc));
assert_fn{}(idx < limit, "out-of-bounds sequence access", std::move(loc));
assert_fn{}(idx >= T{0}, "index cannot be negative", loc);
assert_fn{}(idx < limit, "out-of-bounds sequence access", loc);
}
}
};
Expand Down

0 comments on commit cfa01fc

Please sign in to comment.