Summary: | compilation error: no exp2() | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Thomas Klausner <tk> |
Component: | Portability-Compilation | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andi.clemens, caulier.gilles, marcel.wiesweg |
Priority: | NOR | ||
Version: | 0.10.0 | ||
Target Milestone: | --- | ||
Platform: | NetBSD pkgsrc | ||
OS: | NetBSD | ||
Latest Commit: | Version Fixed In: | 8.2.0 | |
Sentry Crash Report: | |||
Attachments: | Proposed patch |
Description
Thomas Klausner
2008-08-25 21:22:46 UTC
Created attachment 27044 [details]
Proposed patch
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); } /** Please test if everything is fine for you now. Everything alright with this commit? Can we close this? For me the patch is fine and can be applied. Marcel, you have implemented this code originally. Fine for you ? Gilles Yes, fine for me. Since my patch was committed, I'm happy. Thanks! |