From: Matthew Fernandez Date: Sun, 2 May 2021 03:36:35 +0000 (-0700) Subject: use float square root function withing getEdgeLength X-Git-Tag: 2.47.2~7^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1470798126d37300298ce70868112c0a320d256a;p=graphviz use float square root function withing getEdgeLength Like prior commits in this series, this avoids using the double function with float arguments. --- diff --git a/cmd/smyrna/topviewfuncs.c b/cmd/smyrna/topviewfuncs.c index 5f929330d..4ad51c97f 100644 --- a/cmd/smyrna/topviewfuncs.c +++ b/cmd/smyrna/topviewfuncs.c @@ -117,7 +117,7 @@ static GLfloat getEdgeLength(Agedge_t * edge) A=getEdgeTail(edge); B=getEdgeHead(edge); rv=(A.x-B.x)*(A.x-B.x) + (A.y-B.y)*(A.y-B.y) +(A.z-B.z)*(A.z-B.z); - rv=sqrt(rv); + rv=sqrtf(rv); return rv; } static void glCompColorxlate(glCompColor* c,char* str)