From 2b7f79b42c75fc3f35dff8503bb47ea15f0af029 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 13 Feb 2022 18:12:47 +0100 Subject: refactor: fix conversion warning --- src/maze.tpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/maze.tpp b/src/maze.tpp index 84c273e..fd71479 100644 --- a/src/maze.tpp +++ b/src/maze.tpp @@ -111,10 +111,8 @@ void matrix_to_maze(Matrix *matrix, std::shared_ptr start_pos, visited_pos_cnt++; - auto random_dist = std::uniform_int_distribution( - 0U, - static_cast(neighbours.size()) - 1U - ); + auto random_dist = std::uniform_int_distribution( + 0U, static_cast(neighbours.size()) - 1U); auto next_pos = neighbours[random_dist(random_gen)]; -- cgit v1.2.3-18-g5258