Skip to content

Commit

Permalink
Explicit cast to float to fix type deduction error.
Browse files Browse the repository at this point in the history
  • Loading branch information
acaudwell committed Jul 28, 2016
1 parent 631da39 commit b950141
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions 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.
Expand Down
2 changes: 1 addition & 1 deletion src/dirnode.cpp
Expand Up @@ -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{
Expand Down

0 comments on commit b950141

Please sign in to comment.