]> granicus.if.org Git - graphviz/commit
neatogen cmpitems: rephrase to avoid double→int conversion
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 6 Sep 2021 19:53:39 +0000 (12:53 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 9 Sep 2021 14:32:12 +0000 (07:32 -0700)
commitf06bd70f35adf52e850975b65670269b831451da
tree33a9d5b7872af761c15434173bbab837bae7f632
parentf9cc6378e7f78de613578b58ea9c77bbb3908a4a
neatogen cmpitems: rephrase to avoid double→int conversion

This had a number of problems with respect to possible overflow and loss of
precision. This commit rephrases the comparison into something that does not
rely on any coercion or conversion.
lib/neatogen/neatosplines.c