X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mtp.git;a=blobdiff_plain;f=mtp_graph.cc;fp=mtp_graph.cc;h=6fb38779089287fd0f3fb312a50733e14e9283ff;hp=4cfd1f89b83954bbe89a709fafc195455aa66fb9;hb=d61402c073c55b30b1e06f091ffd9c884acc01a0;hpb=f691873b3bfb2c9eff7e249f8a360dd1e636fe70 diff --git a/mtp_graph.cc b/mtp_graph.cc index 4cfd1f8..6fb3877 100644 --- a/mtp_graph.cc +++ b/mtp_graph.cc @@ -289,7 +289,7 @@ void MTPGraph::find_shortest_path() { _source->distance_from_source = 0; _source->decrease_distance_in_heap(_heap); - while(heap_size > 1) { + while(heap_size > 1) { // Get the closest to the source v = _heap[0];