From: Matthew Fernandez Date: Mon, 17 May 2021 02:31:21 +0000 (-0700) Subject: using floats consistently in vscale X-Git-Tag: 2.47.3~24^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72c8c845d8486b13be240250fe1687af0c9a2e9a;p=graphviz using floats consistently in vscale By avoiding mixing doubles and floats, we avoid ever down-converting from a float to a double and losing precision. Squashes a -Wfloat-conversion warning. --- diff --git a/cmd/smyrna/trackball.c b/cmd/smyrna/trackball.c index 21d196d84..c160023c8 100644 --- a/cmd/smyrna/trackball.c +++ b/cmd/smyrna/trackball.c @@ -119,7 +119,7 @@ static void vscale(float *v, float div) static void vnormal(float *v) { - vscale(v, 1.0 / vlength(v)); + vscale(v, 1.0f / vlength(v)); } static float vdot(const float *v1, const float *v2)