Skip to content

Commit 929cfe1

Browse files
committed
Fix: Initialize totalCost to 0.0 instead of NAN to resolve Codacy warning
1 parent 9e7def9 commit 929cfe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trsp/trspHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ void TrspHandler::explore(
232232
int64_t cur_node,
233233
const EdgeInfo cur_edge,
234234
bool isStart) {
235-
double totalCost = NAN;
235+
double totalCost = 0.0;
236236

237237
auto vecIndex = cur_edge.get_idx(isStart);
238238

0 commit comments

Comments
 (0)