[Digikam-devel] [Bug 169814] compilation error: no exp2()
Andi Clemens
andi.clemens at gmx.net
Mon Aug 25 22:14:19 BST 2008
http://bugs.kde.org/show_bug.cgi?id=169814
--- Comment #2 from Andi Clemens <andi clemens gmx net> 2008-08-25 23:14:16 ---
SVN commit 852440 by aclemens:
compile
M +2 -2 dmetadata.cpp
--- trunk/extragear/graphics/digikam/libs/dmetadata/dmetadata.cpp
#852439:852440
@@ -1208,7 +1208,7 @@
return 22;
else if (aperture == 10.0)
return 32;
- return exp2(aperture / 2.0);
+ return exp(log(2) * aperture / 2.0);
}
double DMetadata::apexShutterSpeedToExposureTime(double shutterSpeed)
@@ -1254,7 +1254,7 @@
else if (shutterSpeed == 13.0)
return 0.000125; // 1/8000
- return exp2( - shutterSpeed);
+ return exp( - log(2) * shutterSpeed);
}
/**
--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list