Fix weight comparison in edge BFS
authorKirill Isakov <bootctl@gmail.com>
Mon, 23 May 2022 09:48:50 +0000 (15:48 +0600)
committerKirill Isakov <bootctl@gmail.com>
Mon, 23 May 2022 09:48:50 +0000 (15:48 +0600)
commit72091d5c770856870bb8cd51bcc5641078c7562c
tree16d9f64e00f37d93047d1c52f0b313028f9b3e06
parentd7408492415b8c6eb50de44d2dd74b93b0b3e902
Fix weight comparison in edge BFS

… and add a test to reproduce the issue.

Noticed and reported by Jingrong Chen (@crazyboycjr)
https://github.com/gsliepen/tinc/issues/393
src/graph.c
test/unit/meson.build
test/unit/test_graph.c [new file with mode: 0644]