]> granicus.if.org Git - graphviz/commit
gvgen errexit: squash -Wconversion warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 28 Nov 2021 21:45:27 +0000 (13:45 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 5 Dec 2021 02:50:30 +0000 (18:50 -0800)
commitc59dbf9bad449acde5b3ac786c6a01319b809198
tree341a88e4d0b818979b9e6708bce8e58b2f946dc8
parentf45832c5195ff63bca1f0149a90557c137985f52
gvgen errexit: squash -Wconversion warnings

This function is called with int values, but the values are the result of
`getopt`. `getopt` only ever returns -1 (which is handled separately) or a valid
`char` value, so the cast here is always safe and never truncating.
cmd/tools/gvgen.c