]> granicus.if.org Git - graphviz/commit
dijkstra.c: use standard 'FLT_MAX' instead of 'MAXFLOAT'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Dec 2021 19:37:41 +0000 (11:37 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Dec 2021 23:17:45 +0000 (15:17 -0800)
commit87e5f09258a86ec5b77c771fe9b1a155cb08f564
tree6baee3c894159fcfad7c9646bafed3df21c9491e
parent01483ed844cf7acb29914e45dfd07299861fbf99
dijkstra.c: use standard 'FLT_MAX' instead of 'MAXFLOAT'

This code is simply relying on some initial value that is “larger than any
reasonable result from the following computation.” So `FLT_MAX` is clearer and
more portable.
lib/neatogen/dijkstra.c