From 9f685c302a52f0801ca2f03fc03db3cae61ad3e9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 24 Jan 2022 22:33:31 +0100 Subject: refactor: fix compiler warnings --- src/maze.tpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/maze.tpp') diff --git a/src/maze.tpp b/src/maze.tpp index 6c4fd71..84c273e 100644 --- a/src/maze.tpp +++ b/src/maze.tpp @@ -111,8 +111,10 @@ void matrix_to_maze(Matrix *matrix, std::shared_ptr start_pos, visited_pos_cnt++; - auto random_dist = - std::uniform_int_distribution(0U, neighbours.size() - 1UL); + 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