Skip to content

Commit 21a3e00

Browse files
authored
Merge pull request #3072 from sakirr05/fix/bellman-ford-neg-empty-check
Fix pgr_bellmanFord neg-edges empty check
2 parents 8a6a13a + 74c58b4 commit 21a3e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bellman_ford/bellman_ford_neg_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pgr_do_bellman_ford_neg(
116116
hint = neg_edges_sql;
117117
auto neg_edges = get_edges(std::string(neg_edges_sql), true, false);
118118

119-
if (edges.size() + neg_edges.empty()) {
119+
if (edges.empty() && neg_edges.empty()) {
120120
*notice_msg = to_pg_msg("No edges found");
121121
*log_msg = hint? to_pg_msg(hint) : to_pg_msg(log);
122122
return;

0 commit comments

Comments
 (0)