diff options
author | deep@alchemy-d.com <deep@alchemy-d.com> | 2015-10-14 12:28:49 +0300 |
---|---|---|
committer | deep@alchemy-d.com <deep@alchemy-d.com> | 2015-10-14 12:28:49 +0300 |
commit | 3c9c51ff93c18db779ad97f6faaf7977d031f804 (patch) | |
tree | 0671d98b3ba2aa03c7121800cca885704a4b4bb3 /windirstat | |
parent | 1b6fc71a0b2d49d4fdb63055859b3eb66221e195 (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
Diffstat (limited to 'windirstat')
-rw-r--r-- | windirstat/Controls/treemap.h | 2 |
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: |