]> granicus.if.org Git - graphviz/commit
pathplan Pobsopen: use a 'size_t' when counting objects
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Jul 2022 16:38:15 +0000 (09:38 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 5 Aug 2022 13:52:10 +0000 (06:52 -0700)
commit89db2484c4c619202cb6b296d47884e4396ed938
treeb63ba75641bf07b1b4ca7cbca3e88482cdf3bd2f
parent7033e6a48e6f4105cb114507d775292c2ab6bc12
pathplan Pobsopen: use a 'size_t' when counting objects

This squashes 3 -Wsign-conversion warnings and is generally closer to what we
would like to do here. The “proper” fix is for fields like `vconfig_t.N` to
become `size_t` instead of `int`. But unfortunately they are part of the public
API, and it seems undesirable to break API for this.

Note that an assumption previously implicit in this function, that all inputs
had a non-negative polygon count, is now an explicit assertion.
lib/pathplan/cvt.c