Skip to content

Commit

Permalink
Initialize looping variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
hummingtree committed Nov 12, 2024
1 parent 24c925f commit fd4a930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/int_factor_array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ namespace quda

constexpr unsigned int get_index(unsigned int value) const noexcept
{
unsigned int i;
for (i = 0; i < numFactors<Int>(); i++) {
unsigned int i = 0;
for (; i < numFactors<Int>(); i++) {
if (Multiple * data_[i] == static_cast<unsigned int>(value)) {
return i;
}
Expand Down

0 comments on commit fd4a930

Please sign in to comment.