]> granicus.if.org Git - graphviz/commit
dotgen edgeposcmpf: rephrase comparator to avoid arithmetic
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 8 Jul 2022 00:24:05 +0000 (17:24 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 24 Jul 2022 04:51:17 +0000 (21:51 -0700)
commite0584ac2067d000e2ecbaa98d1e8f5e62b4ce705
treecd55fe621dcefa19fbe7e4eaac9231aa658e772a
parent6eca51f8c9a78fcff5167bd5f7465b14078a2e8a
dotgen edgeposcmpf: rephrase comparator to avoid arithmetic

cccb8b1d22a18031fc92d93133c7fa14ef7e1361 fixed an integer overflow in a
`memcmp`-/`strcmp`-like comparator. The same situation exists in the code
touched in this commit. Rather than wait for an edge case to expose an overflow
here, this change makes the same update, removing arithmetic and the consequent
possibility of overflow.
lib/dotgen/mincross.c