Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chop: Use more efficient float calculations for sqrt
This fixes warnings from LGTM: Multiplication result may overflow 'float' before it is converted to 'double'. While the sqrt function always calculates with double, here the overloaded std::sqrt can be used to handle the float arguments more efficiently. Replace also an old C++ type cast by a static_cast. Signed-off-by: Stefan Weil <[email protected]>
- Loading branch information