Skip to content

Commit

Permalink
Warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Epixu committed Aug 6, 2024
1 parent a35a502 commit 162d784
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/TestDiv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TEMPLATE_TEST_CASE("Divide", "[divide]"
InitOne(x, 1);
InitOne(y, -5);
}
else for (int i = 0; i < CountOf<T>; ++i) {
else for (Count i = 0; i < CountOf<T>; ++i) {
if (x[i] == 0)
x[i] = 1;
if (y[i] == 0)
Expand Down
7 changes: 7 additions & 0 deletions test/TestPow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ TEMPLATE_TEST_CASE("Power", "[power]"
ControlPow(x, y, rCheck);
SIMD::Power(x, y, r);

if constexpr (CT::Vector<T> and CT::Real<TypeOf<T>>) {
for (int i = 0; i < T::MemberCount; ++i) {
if (r[i] != rCheck[i])
Logger::Fatal(x[i], " ^ ", y[i], " = ", rCheck[i], " but got ", r[i]);
}
}

REQUIRE(r == rCheck);

#ifdef LANGULUS_STD_BENCHMARK
Expand Down

0 comments on commit 162d784

Please sign in to comment.