Skip to content

Commit

Permalink
Fixed size_t in stencil.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlitz authored Nov 4, 2024
1 parent e63c534 commit 1567c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Stencil/stencil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Stencil::Stencil(std::initializer_list<int> init)
{
std::copy(init.begin(), init.end(), values_.begin());
stencil_size_ = 0;
for (std::size_t i = 0; i < init.size(); i++)
for (int i = 0; i < init.size(); i++)
{
if (values_[i] != -1) stencil_size_++;
}
}

int Stencil::operator[](StencilType type) const
{
return values_[static_cast<size_t>(type)];
return values_[static_cast<int>(type)];
}

0 comments on commit 1567c79

Please sign in to comment.