]> granicus.if.org Git - graphviz/commit
use more appropriate square root function in vlength
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 17 May 2021 02:30:00 +0000 (19:30 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 29 May 2021 00:57:39 +0000 (17:57 -0700)
commit7bdb0468978f5c5164847a87fc8a9719a4b14abc
tree3f6402aceb2144115c8682e1d9cfffbc7db2433a
parent68b8414b3b3659f7f39493bcffb2fd1775d94ae2
use more appropriate square root function in vlength

The square root functions sqrt and sqrtf compute on doubles and floats
respectively. Using the float version here avoids a lossy conversion from double
to float when returning from this function.
cmd/smyrna/trackball.c