diff --git a/ChangeLog b/ChangeLog index e66cfe21..7c93b92e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 0.44: * Fixed crash when taking a screenshot with an odd resolution. + * Fixed type deduction compilation error with newer versions of GCC. 0.43: * Updated boost autoconf macros to fix multi-arch detection. diff --git a/src/dirnode.cpp b/src/dirnode.cpp index 1fd8f2aa..8db076e7 100644 --- a/src/dirnode.cpp +++ b/src/dirnode.cpp @@ -582,7 +582,7 @@ void RDirNode::calcRadius() { //this->dir_radius_sqrt = sqrt(dir_radius); //dir_radius_sqrt is not used // this->parent_radius = std::max(1.0, parent_circ / PI); - this->parent_radius = std::max(1.0f, sqrt(total_file_area) * gGourceDirPadding); + this->parent_radius = std::max(1.0f, (float) sqrt(total_file_area) * gGourceDirPadding); } float RDirNode::distanceToParent() const{