]> granicus.if.org Git - graphviz/commit
gvmap: uniformly treat clock() results as clock_t or double
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 23 Jun 2021 00:35:28 +0000 (17:35 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 25 Jun 2021 14:39:33 +0000 (07:39 -0700)
commite3654e825c6392ac57930d87038efd47331aeb0b
tree8590585e17cb1ff717bfd2d16dbae54ce4e7eba8
parentfe64d345e8785d8604127032ccae9177e4a5b9be
gvmap: uniformly treat clock() results as clock_t or double

The return type of clock(), clock_t, is an unspecified real type. The usual way
to deal with it is to upcast it to a double when doing computation or printing,
as is done in this commit. Squashes 8 -Wconversion warnings.
cmd/gvmap/country_graph_coloring.c