Skip to content
Snippets Groups Projects
Commit b07b36ec authored by Philip Trettner's avatar Philip Trettner
Browse files

more gcc fixes

parent 7ee1460d
Branches
No related tags found
No related merge requests found
Pipeline #17459 passed
...@@ -206,7 +206,6 @@ TG_FUZZ_TEST(AABB, ObjectIntersection) ...@@ -206,7 +206,6 @@ TG_FUZZ_TEST(AABB, ObjectIntersection)
{ {
auto const numSamples = 250; auto const numSamples = 250;
auto const test_obj = [&](auto const& bb, auto const& o) { auto const test_obj = [&](auto const& bb, auto const& o) {
if (!intersects(o, bb)) if (!intersects(o, bb))
{ {
for (auto i = 0; i < numSamples; ++i) for (auto i = 0; i < numSamples; ++i)
...@@ -228,8 +227,10 @@ TG_FUZZ_TEST(AABB, ObjectIntersection) ...@@ -228,8 +227,10 @@ TG_FUZZ_TEST(AABB, ObjectIntersection)
if constexpr (tg::object_traits<std::decay_t<decltype(o)>>::is_finite) if constexpr (tg::object_traits<std::decay_t<decltype(o)>>::is_finite)
{ {
#ifndef TG_COMPILER_GCC
auto const objBounds = aabb_of(o); auto const objBounds = aabb_of(o);
CHECK(intersects(o, objBounds)); CHECK(intersects(o, objBounds));
#endif
if (!intersects(o, bb)) if (!intersects(o, bb))
{ {
......
...@@ -25,7 +25,7 @@ TG_FUZZ_TEST(TypedGeometry, Intersections) ...@@ -25,7 +25,7 @@ TG_FUZZ_TEST(TypedGeometry, Intersections)
auto iRay = 0; auto iRay = 0;
for (auto iLine = 0; iLine < tsLine.size(); ++iLine) for (auto iLine = 0; iLine < tsLine.size(); ++iLine)
if (tsLine[iLine] >= 0) if (tsLine[iLine] >= 0)
CHECK(tsLine[iLine] == ts[iRay++]); CHECK(tsLine[iLine] == approx(ts[iRay++]));
CHECK(iRay == ts.size()); CHECK(iRay == ts.size());
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment