]> granicus.if.org Git - graphviz/commit
pathplan: phrase comparison in 'splinefits' with a tolerance
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 13 Nov 2022 17:57:47 +0000 (09:57 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 13 Nov 2022 22:54:42 +0000 (14:54 -0800)
commit52bae07a4213badd89fc924701cf5bdf8b1d0f2d
tree657d504846556e3fbd6dffad326520d793375191
parent1f3c19eb17c9b63fe389cb9c05828fd4c5ae76f4
pathplan: phrase comparison in 'splinefits' with a tolerance

From the adjustments to `a` in this function, it can be seen this is equivalent.
This squashes the warning:

  route.c: In function ‘splinefits’:
  route.c:252:15: warning: comparing floating-point with ‘==’ or ‘!=’ is unsafe
    [-Wfloat-equal]
    252 |         if (a == 0) {
        |               ^~
lib/pathplan/route.c