Summary: | IRIX C++ compiler needs explicit floating point type | ||
---|---|---|---|
Product: | [Applications] kfile-plugins | Reporter: | The Written Word <bugzilla-kde> |
Component: | jpeg | Assignee: | Carsten Pfeiffer <pfeiffer> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | IRIX | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Patch |
Description
The Written Word
2004-03-22 19:07:26 UTC
Created attachment 5345 [details]
Patch
CVS commit by mcamen: IRIX MipsPro compiler has a problem determining which overloaded function to match log(2) to. Fix is to use log(2.0). CCMAIL: 78244-done@bugs.kde.org M +2 -2 exif.cpp 1.7 --- kdegraphics/kfile-plugins/jpeg/exif.cpp #1.6:1.7 @@ -570,5 +570,5 @@ void ExifData::ProcessExifDir(unsigned c if (ExifData::ApertureFNumber == 0){ ExifData::ApertureFNumber - = (float)exp(ConvertAnyFormat(ValuePtr, Format)*log(2)*0.5); + = (float)exp(ConvertAnyFormat(ValuePtr, Format)*log(2.0)*0.5); } break; @@ -597,5 +597,5 @@ void ExifData::ProcessExifDir(unsigned c if (ExifData::ExposureTime == 0){ ExifData::ExposureTime - = (float)(1/exp(ConvertAnyFormat(ValuePtr, Format)*log(2))); + = (float)(1/exp(ConvertAnyFormat(ValuePtr, Format)*log(2.0))); } break; Will be in KDE >= 3.2.3 (KDE 3.2.2 is already tagged). |