Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeep@alchemy-d.com <deep@alchemy-d.com>2015-10-14 12:28:49 +0300
committerdeep@alchemy-d.com <deep@alchemy-d.com>2015-10-14 12:28:49 +0300
commit3c9c51ff93c18db779ad97f6faaf7977d031f804 (patch)
tree0671d98b3ba2aa03c7121800cca885704a4b4bb3
parent1b6fc71a0b2d49d4fdb63055859b3eb66221e195 (diff)
problem with ambiguous overload call to abs .. fixed with fabs:
int RoundDouble(double d) { return signum(d) * (int)(fabs(d) + 0.5); } see: http://stackoverflow.com/questions/1374037/ambiguous-overload-call-to-absdouble
-rw-r--r--windirstat/Controls/treemap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/windirstat/Controls/treemap.h b/windirstat/Controls/treemap.h
index 046bf61..0d29382 100644
--- a/windirstat/Controls/treemap.h
+++ b/windirstat/Controls/treemap.h
@@ -142,7 +142,7 @@ public:
void SetLightSourceYPercent(int n) { lightSourceY = n / 100.0; }
void SetLightSourcePoint(CPoint pt) { SetLightSourceXPercent(pt.x); SetLightSourceYPercent(pt.y); }
- int RoundDouble(double d) { return signum(d) * (int)(abs(d) + 0.5); }
+ int RoundDouble(double d) { return signum(d) * (int)(fabs(d) + 0.5); }
};
public: