From: Marc Espie Date: Sat, 24 Mar 2007 12:27:36 +0000 (+0000) Subject: don't call sqrt(int), it is not guaranteed. If it's not there, the call X-Git-Tag: v3.90.1~24 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=42d8b1496874cf037b21ab9632e40826a7457a04;p=libqmvoc.git 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 --- 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 );