]> granicus.if.org Git - graphviz/commit
portcmp: rephrase to avoid conversion to int
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 7 Oct 2021 02:57:42 +0000 (19:57 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 10 Oct 2021 18:15:10 +0000 (11:15 -0700)
commit079fe43b981e8891ddac12f9ce7cb12d03b8cde3
treefe68016526dda9f25a3d310c4972b7a65efb2cf7
parent4d6754aa76c3b0e5a952f216876a7e10ca501b06
portcmp: rephrase to avoid conversion to int

This function was seemingly incorrectly casting the (float) result of a float
subtraction to an integer. Apart from triggering compiler warnings, this had the
effect of concluding points that were merely close together were actually equal.
lib/dotgen/dotsplines.c