algorithms(bf-to-astar): fix typos

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2024-01-06 17:28:16 +01:00
parent 1930f0207c
commit e881234412
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -107,8 +107,8 @@ struct graph {
auto [ux, uy] = u; auto [ux, uy] = u;
auto [vx, vy] = v; auto [vx, vy] = v;
auto hd = std::abs(ux - vx) + std::abs(uy - vy); auto md = std::abs(ux - vx) + std::abs(uy - vy);
switch (hd) { switch (md) {
// u = v; staying on the same cell // u = v; staying on the same cell
case 0: case 0:
return 0; return 0;