mirror of
https://github.com/mfocko/blog.git
synced 2024-11-25 06:11:55 +01:00
algorithms(bf-to-astar): fix typos
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
1930f0207c
commit
e881234412
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue