From 42d8b1496874cf037b21ab9632e40826a7457a04 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sat, 24 Mar 2007 12:27:36 +0000 Subject: [PATCH] don't call sqrt(int), it is not guaranteed. If it's not there, the call will be ambiguous. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=646054 --- libscience/compoundviewer/kalziumglhelperclasses.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libscience/compoundviewer/kalziumglhelperclasses.cpp b/libscience/compoundviewer/kalziumglhelperclasses.cpp index f7af456..afd7140 100644 --- a/libscience/compoundviewer/kalziumglhelperclasses.cpp +++ b/libscience/compoundviewer/kalziumglhelperclasses.cpp @@ -219,7 +219,7 @@ void Sphere::computeVertex( int strip, int column, int row) Vector3f & vertex = m_vertexBuffer[ index ]; // the "golden ratio", useful to construct an icosahedron - const float phi = ( 1 + sqrt(5) ) / 2; + const float phi = ( 1 + sqrt(5.0) ) / 2; // the 12 vertices of the icosahedron const Vector3f northPole( 0, 1, phi ); -- 2.47.3