Skip to content

Commit 6df92f4

Browse files
committed
Use more expressive type
1 parent b25fbfb commit 6df92f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Raytracer.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ namespace {
5959
return sf::Color(r, g, b);
6060
}
6161

62-
[[nodiscard]] auto trace_ray(const Scene& scene, const Ray& ray, const int depth) noexcept
62+
[[nodiscard]] auto trace_ray(const Scene& scene, const Ray& ray, const unsigned depth) noexcept
6363
{
64-
assert(depth >= 0);
6564
if (depth == 0)
6665
return sf::Vector3f();
6766

0 commit comments

Comments
 (0)