From db2510c75dfc995b6d94db8c8a08e7ae5e36c85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Tr=C3=A1vn=C3=AD=C4=8Dek?= <jan.travnicek@fit.cvut.cz> Date: Fri, 26 Nov 2021 19:05:34 +0100 Subject: [PATCH] tidy: while ( true ) instead of while ( 1 ) --- alib2graph_algo/src/shortest_path/IDAStar.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alib2graph_algo/src/shortest_path/IDAStar.hpp b/alib2graph_algo/src/shortest_path/IDAStar.hpp index 34e94c230a..1d862e3ee5 100644 --- a/alib2graph_algo/src/shortest_path/IDAStar.hpp +++ b/alib2graph_algo/src/shortest_path/IDAStar.hpp @@ -115,7 +115,7 @@ IDAStar::findPath(const TGraph &graph, data.path_set.insert(start); weight_type bound = f_heuristic(start); - while (1) { + while ( true ) { bool found; weight_type t; ext::tie(found, t) = search(graph, data, goal, 0, bound, f_heuristic, f_user); -- GitLab